home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Standards 1994 January / InfoMagic Standards - January 1994.iso / ccitt / 1988 / troff / 3_4_08.tro < prev    next >
Text File  |  1991-12-12  |  60KB  |  2,864 lines

  1. .rs
  2. .\" Troff code generated by TPS Convert from ITU Original Files
  3. .\"                 Not Copyright ( c) 1991 
  4. .\"
  5. .\" Assumes tbl, eqn, MS macros, and lots of luck.
  6. .TA 1c 2c 3c 4c 5c 6c 7c 8c
  7. .ds CH
  8. .ds CF
  9. .EQ
  10. delim @@
  11. .EN
  12. .nr LL 40.5P
  13. .nr ll 40.5P
  14. .nr HM 3P
  15. .nr FM 6P
  16. .nr PO 4P
  17. .nr PD 9p
  18. .po 4P
  19.  
  20. .rs
  21. \v | 5i'
  22. .sp 2P
  23. .LP
  24. \fBRecommendation\ G.722\fR 
  25. .RT
  26. .sp 2P
  27. .sp 1P
  28. .ce 1000
  29. \fB7\ kHz\ AUDIO\(hyCODING\ WITHIN\ 64\ KBIT/S\fR 
  30. .EF '%    Fascicle\ III.4\ \(em\ Rec.\ G.722''
  31. .OF '''Fascicle\ III.4\ \(em\ Rec.\ G.722    %'
  32. .ce 0
  33. .sp 1P
  34. .ce 1000
  35. \fI(Melbourne, 1988)\fR 
  36. .sp 9p
  37. .RT
  38. .ce 0
  39. .sp 1P
  40. .LP
  41. \fB1\fR     \fBGeneral\fR 
  42. .sp 1P
  43. .RT
  44. .sp 1P
  45. .LP
  46. 1.1
  47.     \fIScope and outline description\fR 
  48. .sp 9p
  49. .RT
  50. .PP
  51. This Recommendation describes the characteristics of an audio (50 to 7 
  52. 000\ Hz) coding system which may be used for a variety of higher quality 
  53. speech applications. The coding system uses 
  54. sub\(hyband adaptive differential pulse code modulation
  55. (SB\(hyADPCM) within a bit rate of 64 kbitB/Fs. The
  56. system is henceforth referred to as 64 kbit/s (7\ kHz) audio coding. In the
  57. SB\(hyADPCM technique used, the frequency band is split into two sub\(hybands 
  58. (higher and lower) and the signals in each sub\(hyband are encoded using 
  59. ADPCM. 
  60. .PP
  61. The system has three basic modes of operation corresponding to the bit rates
  62. used for 7\ kHz 
  63. audio coding
  64. :\ 64, 56 and 48\ kbit/s. The latter two modes allow an 
  65. auxiliary data channel
  66. of\ 8 and 16\ kbit/s respectively to be provided within the 64\ kbit/s 
  67. by making use of bits from the lower sub\(hyband. 
  68. .PP
  69. Figure 1/G.722 identifies the main functional parts of the 64 kbit/s (7\ 
  70. kHz) 
  71. audio codec
  72. as follows:
  73. .RT
  74. .LP
  75.     i)
  76.     64 kbit/s (7 kHz) audio encoder comprising:
  77. .LP
  78.     \(em
  79.     a transmit audio part which converts an audio signal to
  80. \fR 
  81. a uniform digital signal which is coded using 14\ bits with
  82. \fR 
  83. 16\ kHz sampling;
  84. .LP
  85.     \(em
  86.     a SB\(hyADPCM encoder
  87. which reduces the bit rate
  88. to 64\ kbit/s.
  89. .LP
  90.     ii)
  91.     64 kbitB/Fs (7 kHz) audio decoder comprising:
  92. .LP
  93.     \(em
  94.     a 
  95. SB\(hyADPCM decoder
  96. which performs the reverse
  97. operation to the encoder, noting that the effective audio
  98. coding bit rate at the input of the decoder can be\ 64, 56
  99. or 48\ kbit/s depending on the mode of operation;
  100. .LP
  101. \fR 
  102.     \(em
  103.     a receive audio part which reconstructs the audio
  104. signal from the uniform digital signal which is encoded
  105. using 14\ bits with 16\ kHz sampling.
  106. .PP
  107. The following two parts, identified in Figure 1/G.722 for
  108. clarification, will be needed for applications requiring an auxiliary data
  109. channel within the 64\ kbit/s:
  110. .LP
  111.     \(em
  112.     a data insertion device at the transmit end which makes
  113. use of, when needed, 1\ or 2\ audio bits per octet depending on
  114. the mode of operation and substitutes data bits to provide an
  115. auxiliary data channel of 8\ or 16\ kbit/s respectively;
  116. .LP
  117. \fR 
  118.     \(em
  119.     a data extraction device at the receive end which
  120. determines the mode of operation according to a mode control
  121. strategy and extracts the data bits as appropriate.
  122. .PP
  123. Paragraph 1.2 contains a functional description of the transmit and receive 
  124. audio parts, \(sc 1.3 describes the modes of operation and the implication 
  125. of inserting data bits on the algorithms, whilst \(sc\(sc\ 1.4 and\ 1.5 
  126. provide the 
  127. functional descriptions of the SB\(hyADPCM encoding and decoding algorithms
  128. respectively. Paragraph\ 1.6 deals with the timing requirements. Paragraph\ 2
  129. specifies the
  130. transmission characteristics of the 64\ kbit/s (7\ kHz) audio codec and of the
  131. transmit and receive audio parts, \(sc\(sc\ 3 and\ 4 give the principles of the
  132. SB\(hyADPCM encoder respectively whilst \(sc\(sc\ 5 and\ 6 specify the 
  133. computational 
  134. details of the 
  135. Quadrature Mirror Filters
  136. (QMF) and of the ADPCM
  137. encoders and decoders respectively.
  138. .PP
  139. Networking aspects and test sequences are addressed in Appendices\ I
  140. and\ II respectively to this Recommendation.
  141. .PP
  142. Recommendation\ G.725 contains specifications for in\(hychannel
  143. handshaking procedures for terminal identification and for mode control
  144. strategy, including interworking with existing 64\ kbit/s PCM
  145. terminals.
  146. .bp
  147. .RT
  148. .LP
  149. .rs
  150. .sp 31P
  151. .ad r
  152. \fBFigure 1/G.722, p.\fR 
  153. .sp 1P
  154. .RT
  155. .ad b
  156. .RT
  157. .sp 1P
  158. .LP
  159. 1.2
  160.     \fIFunctional description of the audio parts\fR 
  161. .sp 9p
  162. .RT
  163. .PP
  164. Figure 2/G.722 shows a possible arrangement of audio parts in a
  165. 64\ kbit/s (7\ kHz) 
  166. audio coding terminal
  167. . The microphone, pre\(hyamplifier, power amplifier and loudspeaker are 
  168. shown simply to identify the audio parts 
  169. and are not considered further in this Recommendation.
  170. .PP
  171. In order to facilitate the measurement of the transmission
  172. characteristics as specified in \(sc\ 2, test points\ A and\ B need to 
  173. be provided as shown. These test points may either be for test purposes 
  174. only or, where the 
  175. audio parts are located in different units from the microphone, loudspeaker,
  176. etc., correspond to physical interfaces.
  177. .PP
  178. The transmit and receive audio parts comprise either the following
  179. functional units or any equivalent items satisfying the specifications
  180. of \(sc\ 2:
  181. .RT
  182. .LP
  183.     i)
  184.     transmit:
  185. .LP
  186.     \(em
  187.     an input level adjustment device,
  188. .LP
  189.     \(em
  190.     an input 
  191. anti\(hyaliasing filter
  192. ,
  193. .LP
  194. \fR 
  195.     \(em
  196.     a sampling device operating at 16 kHz,
  197. .LP
  198.     \(em
  199.     an 
  200. analogue\(hyto\(hyuniform digital converter
  201. with
  202. 14\ bits and with 16\ kHz sampling;
  203. .LP
  204.     ii)
  205.     receive:
  206. .LP
  207.     \(em
  208.     a 
  209. uniform digital\(hyto\(hyanalogue converter
  210. with
  211. 14\ bits and with 16\ kHz sampling,
  212. .LP
  213.     \(em
  214.     a 
  215. reconstructing filter
  216. which includes x/sin
  217. x\ correction,
  218. .LP
  219.     \(em
  220.     an output level adjustment device.
  221. .bp
  222. .LP
  223. .rs
  224. .sp 20P
  225. .ad r
  226. \fBFigure 2/G.722, p.\fR 
  227. .sp 1P
  228. .RT
  229. .ad b
  230. .RT
  231. .sp 1P
  232. .LP
  233. 1.3
  234.     \fIPossible modes of operation and implications of inserting data\fR 
  235. .sp 9p
  236. .RT
  237. .PP
  238. \fR The three basic possible modes of operation which correspond to the 
  239. bit rates available for audio coding at the input of the decoder are defined 
  240. in Table\ 1/G.722. 
  241. .RT
  242. .ce
  243. \fBH.T. [T1.722]\fR 
  244. .ce
  245. TABLE\ 1/G.722
  246. .ce
  247. \fBBasic possible modes of operation\fR 
  248. .ps 9
  249. .vs 11
  250. .nr VS 11
  251. .nr PS 9
  252. .TS
  253. center box;
  254. cw(36p) | cw(72p) | cw(72p) .
  255. Mode    7 kHz audio coding bit rate     {
  256. Auxiliary data channel bit rate
  257.  }
  258. _
  259. .T&
  260. cw(36p) | cw(72p) | cw(72p) .
  261. 1    64 kbit/s    \ 0 kbit/s
  262. .T&
  263. cw(36p) | cw(72p) | cw(72p) .
  264. 2    56 kbit/s    \ 8 kbit/s
  265. .T&
  266. cw(36p) | cw(72p) | cw(72p) .
  267. 3    48 kbit/s    16 kbit/s
  268. _
  269. .TE
  270. .nr PS 9
  271. .RT
  272. .ad r
  273. \fBTable 1/G.722 [T1.722], p.\fR 
  274. .sp 1P
  275. .RT
  276. .ad b
  277. .RT
  278. .PP
  279. .sp 3
  280. See Appendix I for examples of applications using one or several of these 
  281. modes and for their corresponding subjective quality. 
  282. .bp
  283. .PP
  284. The 64 kbit/s (7 kHz) audio encoder uses 64 kbit/s for audio coding
  285. at all times irrespective of the mode of operation. The audio coding algorithm 
  286. has been chosen such that, without sending any indication to the encoder, 
  287. the least significant bit or two least significant bits of the lower sub\(hyband 
  288. may 
  289. .PP
  290. be used downstream from the 64\ kbit/s (7\ kHz) audio encoder in order to
  291. substitute the auxiliary data channel bits. However, to maximize the audio
  292. performance for a given mode of operation, the 64\ kbit/s (7\ kHz) audio 
  293. decoder must be optimized to the bit rate available for audio coding. Thus, 
  294. this 
  295. Recommendation describes three variants of the SB\(hyADPCM decoder and, for
  296. applications requiring an auxiliary data channel, an indication must be
  297. forwarded to select in the decoder the variant appropriate to the mode of
  298. operation. Figure\ 1/G.722 illustrates the arrangement. It should be noted 
  299. that the bit rate at the input of the 64\ kbit/s (7\ kHz) audio decoder 
  300. is always 
  301. 64\ kbit/s but comprising\ 64, 56 or 48\ kbit/s for audio coding depending 
  302. on the mode of operation. From an algorithm viewpoint, the variant used 
  303. in the 
  304. SB\(hyADPCM decoder can be changed in any octet during the transmission. 
  305. When no indication about the mode of operation is forwarded to the decoder, 
  306. the variant corresponding to Mode\ 1 should be used. 
  307. .PP
  308. A mode mismatch situation, where the variant used in the 64\ kbit/s
  309. (7\ kHz) audio decoder for a given octet does not correspond to the mode of
  310. operation, will not cause misoperation of the decoder. However, to maximize 
  311. the audio performance, it is recommended that the mode control strategy 
  312. adopted in 
  313. .PP
  314. the data extraction device should be such as to minimize the duration of the
  315. mode mismatch. Appendix\ I gives further information on the effects of a mode
  316. mismatch. To ensure compatibility between various types of 64\ kbit/s (7\ kHz)
  317. audio coding terminals, it is recommended that, as a minimum, the variant
  318. corresponding to Mode\ 1 operation is always implemented in the decoder.
  319. .PP
  320. \fR 
  321. The mode control strategy could be derived from the auxiliary data
  322. channel protocol (see Recommendation\ G.725).
  323. .RT
  324. .sp 1P
  325. .LP
  326. 1.4
  327.     \fIFunctional description of the\fR 
  328. \fISB\(hyADPCM encoder\fR 
  329. .sp 9p
  330. .RT
  331. .PP
  332. \fR 
  333. Figure 3/G.722 is a block diagram of the SB\(hyADPCM encoder. A
  334. functional description of each block is given below in \(sc\(sc\ 1.4.1 
  335. to\ 1.4.4. 
  336. .RT
  337. .LP
  338. .rs
  339. .sp 13P
  340. .ad r
  341. \fBFigure 3/G.722, p.\fR 
  342. .sp 1P
  343. .RT
  344. .ad b
  345. .RT
  346. .sp 1P
  347. .LP
  348. 1.4.1
  349.     \fITransmit quadrature mirror filters\fR (QMFs)
  350. .sp 9p
  351. .RT
  352. .PP
  353. The transmit QMFs comprise two linear\(hyphase non\(hyrecursive digital 
  354. filters which split the frequency band 0\ to 8000\ Hz into two sub\(hybands: 
  355. the 
  356. lower sub\(hyband (0\ to 4000\ Hz) and the higher sub\(hyband (4000\ to 
  357. 8000\ Hz). The 
  358. .PP
  359. input to the transmit QMFs,\ \fIx\fR\d\fIi\fR\\d\fIn\fR\u, is the output 
  360. from the transmit audio part and is sampled at 16\ kHz. The outputs,\ \fIx\fR\d\fIL\fR\uand\ 
  361. \fIx\fR\d\fIH\fR\u, 
  362. for the lower and higher sub\(hybands respectively, are sampled at 8\ kHz.
  363. .RT
  364. .sp 1P
  365. .LP
  366. 1.4.2
  367.     \fILower sub\(hyband ADPCM encoder\fR 
  368. .sp 9p
  369. .RT
  370. .PP
  371. Figure 4/G.722 is a block diagram of the lower sub\(hyband ADPCM
  372. encoder. The lower sub\(hyband input signal,\ \fIx\fR\d\fIL\fR\uafter subtraction 
  373. of an 
  374. estimate,\ \fIs\fR\d\fIL\fR\u, of the input signal produces the difference 
  375. signal, 
  376. \fIe\fR\d\fIL\fR\u. An adaptive 60\(hylevel 
  377. non linear quantizer
  378. is used to
  379. assign six binary digits to the value of the difference signal to produce a
  380. 48\ kbit/s signal,\ \fII\fR\d\fIL\fR\u.
  381. .bp
  382. .PP
  383. In the feedback loop, the two least significant bits of \fII\fR\d\fIL\fR\uare
  384. deleted to produce a 4\(hybit signal\ \fII\fR\d\fIL\fR\\d\fIt\fR\u, which 
  385. is used for the 
  386. quantizer adaptation and applied to a 15\(hylevel inverse adaptive quantizer to
  387. produce a quantized difference signal,\ \fId\fR\d\fIL\fR\\d\fIt\fR\u. The 
  388. signal estimate, \fIs\fR\d\fIL\fR\uis added to this quantized difference 
  389. signal to produce a reconstructed version,\ \fIr\fR\d\fIL\fR\\d\fIt\fR\u, 
  390. of the lower sub\(hyband input signal. Both the 
  391. reconstructed signal and the quantized difference signal are operated upon 
  392. by an adaptive predictor which produce the estimate,\ \fIs\fR\d\fIL\fR\u, 
  393. of the input signal, thereby completing the feedback loop. 
  394. .PP
  395. 4\(hybit operation, instead of 6\(hybit operation, in the feedback loops 
  396. of both the lower sub\(hyband ADPCM encoder, and the lower sub\(hyband 
  397. ADPCM decoder 
  398. allows the possible insertion of data in the two least significant bits as
  399. described in \(sc\ 1.3 without causing misoperation in the decoder. Use of a
  400. 60\(hylevel quantizer (instead of 64\(hylevel) ensures that the pulse density
  401. requirements as described in Recommendation\ G.802 are met under all conditions 
  402. and in all modes of operation. 
  403. .RT
  404. .LP
  405. .rs
  406. .sp 29P
  407. .ad r
  408. \fBFigure 4/G.722, p.\fR 
  409. .sp 1P
  410. .RT
  411. .ad b
  412. .RT
  413. .sp 1P
  414. .LP
  415. 1.4.3
  416.     \fIHigher sub\(hyband ADPCM encoder\fR 
  417. .sp 9p
  418. .RT
  419. .PP
  420. Figure 5/G.722 is a block diagram of the higher sub\(hyband ADPCM
  421. encoder. The higher sub\(hyband input signal,\ \fIx\fR\d\fIH\fR\uafter 
  422. subtraction of an 
  423. estimate,\ \fIs\fR\d\fIH\fR\u, of the input signal, produces the difference 
  424. signal, \fIe\fR\d\fIH\fR\u. An adaptive 4\(hylevel non linear quantizer 
  425. is used to assign two binary digits to the value of the difference signal 
  426. to produce a 16\ kbit/s 
  427. signal,\ \fII\fR\d\fIH\fR\u.
  428. .PP
  429. \fR An inverse adaptive quantizer produces a quantized difference
  430. signal,\ \fId\fR\d\fIH\fR\u, from these same two binary digits. The signal 
  431. estimate, \fIs\fR\d\fIH\fR\u, is added to this quantized difference signal 
  432. to produce a 
  433. reconstructed version,\ \fIr\fR\d\fIH\fR\u, of the higher sub\(hyband input 
  434. signal. Both the reconstructed signal and the quantized difference signal 
  435. are operated upon by an adaptive predictor which produces the estimate,\ 
  436. \fIs\fR\d\fIH\fR\u, of the 
  437. input signal, thereby completing the feedback loop.
  438. .bp
  439. .RT
  440. .LP
  441. .rs
  442. .sp 23P
  443. .ad r
  444. \fBFigure 5/G.722, p.\fR 
  445. .sp 1P
  446. .RT
  447. .ad b
  448. .RT
  449. .sp 1P
  450. .LP
  451. 1.4.4
  452.     \fIMultiplexer\fR 
  453. .sp 9p
  454. .RT
  455. .PP
  456. The multiplexer (MUX) shown in Figure 3/G.722 is used to combine the signals,\ 
  457. \fII\fR\d\fIL\fR\uand\ \fII\fR\d\fIH\fR\u, from the lower and higher sub\(hyband 
  458. ADPCM encoders respectively into a composite 64\ kbit/s signal,\ I, with 
  459. an octet format for transmission. 
  460. .PP
  461. The output octet format, after multiplexing, is as
  462. follows:
  463. \v'6p'
  464. .RT
  465. .sp 1P
  466. .ce 1000
  467. \fII\fR\d\fIH\fR\\d1\u\fII\fR\d\fIH\fR\\d2\u\fII\fR\d\fIL\fR\\d1\u\fII\fR\d\fIL\fR\\d2\u\fI\fR 
  468. \fII\fR\d\fIL\fR\\d3\u\fII\fR\d\fIL\fR\\d4\u\fII\fR\d\fIL\fR\\d5\u\fII\fR\d\fIL\fR\\d6\u 
  469. .ce 0
  470. .sp 1P
  471. .LP
  472. .sp 1
  473. where \fII\fR\d\fIH\fR\\d1\uis the first bit transmitted, and
  474. where\ \fII\fR\d\fIH\fR\\d1\uand\ \fII\fR\d\fIL\fR\\d1\uare the most significant 
  475. bits of \fII\fR\d\fIH\fR\uand\ \fII\fR\d\fIL\fR\urespectively, whilst\ 
  476. \fII\fR\d\fIH\fR\\d2\uand\ \fII\fR\d\fIL\fR\\d6\uare the least significant 
  477. bits of\ \fII\fR\d\fIH\fR\uand\ \fII\fR\d\fIL\fR\u 
  478. respectively.
  479. .sp 1P
  480. .LP
  481. 1.5
  482.     \fIFunctional description of the\fR 
  483. \fISB\(hyADPCM decoder\fR 
  484. .sp 9p
  485. .RT
  486. .PP
  487. \fR 
  488. Figure 6/G.722 is a block diagram of the SB\(hyADPCM decoder. A
  489. functional description of each block is given below in \(sc\(sc\ 1.5.1 
  490. to\ 1.5.4. 
  491. .RT
  492. .LP
  493. .rs
  494. .sp 13P
  495. .ad r
  496. \fBFigure 6/G.722, p.\fR 
  497. .sp 1P
  498. .RT
  499. .ad b
  500. .RT
  501. .LP
  502. .bp
  503. .sp 1P
  504. .LP
  505. 1.5.1
  506.     \fIDemultiplexer\fR 
  507. .sp 9p
  508. .RT
  509. .PP
  510. The demultiplexer (DMUX) decomposes the received 64 kbit/s
  511. octet\(hyformatted signal,\ \fII\fR\d\fIr\fR\u, into two signals,\ \fII\fR\d\fIL\fR\\d\fIr\fR\uand 
  512. \fII\fR\d\fIH\fR\u, which form the codeword inputs to the lower and higher 
  513. sub\(hyband ADPCM decoders respectively. 
  514. .RT
  515. .sp 1P
  516. .LP
  517. 1.5.2
  518.     \fILower sub\(hyband ADPCM decoder\fR 
  519. .sp 9p
  520. .RT
  521. .PP
  522. Figure 7/G.722 is a block diagram of the lower sub\(hyband ADPCM
  523. decoder. This decoder can operate in any of three possible variants depending 
  524. on the received indication of the mode of operation. 
  525. .RT
  526. .LP
  527. .rs
  528. .sp 35P
  529. .ad r
  530. \fBFigure 7/G.722, p.\fR 
  531. .sp 1P
  532. .RT
  533. .ad b
  534. .RT
  535. .PP
  536. The path which produces the estimate, \fIs\fR\d\fIL\fR\u, of the input 
  537. signal including the 
  538. quantizer adaptation
  539. , is identical to the feedback portion of the lower sub\(hy band ADPCM 
  540. encoder described in \(sc\ 1.4.2. The 
  541. reconstructed signal,\ \fIr\fR\d\fIL\fR\u, is produced by adding to the signal
  542. estimate one of three possible quantized difference
  543. signals,\ \fId\fR\d\fIL\fR\\d,\\d6\u,\ \fId\fR\d\fIL\fR\\d,\\d5\uor\ \fId\fR\d\fIL\fR\\d,\\d4\u(=\ 
  544. \fId\fR\d\fIL\fR\\d\fIt\fR\u\(hy see note), selected according to the received 
  545. indication of 
  546. the mode of operation. For each indication, Table\ 2/G.722 shows the quantized 
  547. difference signal selected, the inverse adaptive quantizer used and the 
  548. number of least significant bits deleted from the input codeword. 
  549. .bp
  550. .ce
  551. \fBH.T. [T2.722]\fR 
  552. .ce
  553. TABLE\ 2/G.722
  554. .ce
  555. \fBLower sub\(hyband ADPCM decoder variants\fR 
  556. .ps 9
  557. .vs 11
  558. .nr VS 11
  559. .nr PS 9
  560. .TS
  561. center box;
  562. cw(60p) | cw(54p) | cw(60p) | cw(54p) .
  563.  {
  564. Received indication of mode of operation
  565.  }     {
  566. Quantized difference signal selected
  567.  }     {
  568. Inverse adaptive quantizer used
  569.  }     {
  570. Number of least significant bits deleted from input codeword,
  571. I
  572. L
  573. r
  574.  }
  575. _
  576. .T&
  577. cw(60p) | cw(54p) | cw(60p) | cw(54p) .
  578. Mode 1    d L , 6    60\(hylevel    0
  579. .T&
  580. cw(60p) | cw(54p) | cw(60p) | cw(54p) .
  581. Mode 2    d L , 5    30\(hylevel    1
  582. .T&
  583. cw(60p) | cw(54p) | cw(60p) | cw(54p) .
  584. Mode 3    d L , 4    15\(hylevel    2
  585. .TE
  586. .LP
  587. \fINote\fR
  588. \ \(em\ For clarification purposes, all three inverse quantizers have been
  589. indicated in the upper portion of Figure\ 7/G.722. In an optimized
  590. implementation, the signal\ d
  591. L
  592. t, produced in the predictor loop, could be substituted for\ d
  593. L , 4.
  594. .nr PS 9
  595. .RT
  596. .ad r
  597. \fBTable 2/G.722 [T2.722], p.\fR 
  598. .sp 1P
  599. .RT
  600. .ad b
  601. .RT
  602. .sp 1P
  603. .LP
  604. .sp 2
  605. 1.5.3
  606.     \fIHigher sub\(hyband ADPCM decoder\fR 
  607. .sp 9p
  608. .RT
  609. .PP
  610. Figure 8/G.722 is a block diagram of the higher sub\(hyband ADPCM
  611. decoder. This decoder is identical to the feedback portion of the higher
  612. sub\(hyband ADPCM encoder described in \(sc\ 1.4.3, the output being the 
  613. reconstructed signal,\ \fIr\fR\d\fIH\fR\u. 
  614. .RT
  615. .LP
  616. .rs
  617. .sp 17P
  618. .ad r
  619. \fBFigure 8/G.722, p.\fR 
  620. .sp 1P
  621. .RT
  622. .ad b
  623. .RT
  624. .sp 1P
  625. .LP
  626. 1.5.4
  627.     \fIReceive QMFs\fR 
  628. .sp 9p
  629. .RT
  630. .PP
  631. The receive QMFs shown in Figure 6/G.722 are two 
  632. linear\(hyphase   non\(hyrecursive digital filters
  633. which interpolate the outputs,\ \fIr\fR\d\fIL\fR\uand
  634. \fIr\fR\d\fIH\fR\u, of the lower and higher sub\(hyband ADPCM decoders 
  635. from 8\ kHz to 
  636. 16\ kHz and which then produce an output,\ \fIx\fR\d\fIo\fR\\d\fIu\fR\\d\fIt\fR\u, 
  637. sampled at 
  638. 16\ kHz which forms the input to the receive audio parts.
  639. .PP
  640. \fR Excluding the ADPCM coding processes, the combination of the
  641. transmit and the receive QMFs has an impulse response which closely
  642. approximates a simple delay whilst, at the same time, the 
  643. aliasing
  644. effects associated with the 8\ kHz 
  645. sub\(hysampling
  646. are cancelled.
  647. .bp
  648. .RT
  649. .sp 1P
  650. .LP
  651. 1.6
  652.     \fITiming requirements\fR 
  653. .sp 9p
  654. .RT
  655. .PP
  656. 64 kHz bit timing and 8 kHz octet timing should be provided by the network 
  657. to the audio decoder. 
  658. .PP
  659. For a correct operation of the audio coding system, the precision of the 
  660. 16\ kHz sampling frequencies of the A/D and D/A converters must be better 
  661. than \(+- | 0 | (mu | 0\uD\dlF261\u6\d.
  662. .RT
  663. .sp 2P
  664. .LP
  665. \fB2\fR     \fBTransmission characteristics\fR 
  666. .sp 1P
  667. .RT
  668. .sp 1P
  669. .LP
  670. 2.1
  671.     \fICharacteristics of the audio ports and the\fR 
  672. \fItest points\fR 
  673. .sp 9p
  674. .RT
  675. .PP
  676. \fR 
  677. Figure 2/G.722 indicates the audio input and output ports and the test 
  678. points (A and\ B). It is for the designer to determine the characteristics 
  679. of the audio ports and the test points (i.e.\ relative levels, impedances, 
  680. whether balanced or unbalanced). The microphone, pre\(hyamplifier, power 
  681. amplifier and loudspeaker should be chosen with reference to the specifications 
  682. of the 
  683. audio parts: in particular their nominal bandwidth, idle noise and
  684. distortion.
  685. .PP
  686. It is suggested that input and ouput impedances
  687. should be high and low, respectively, for an unbalanced termination
  688. whilst for a balanced termination these impedances should be 600 ohms.
  689. However, the audio parts should meet all audio parts specifications for 
  690. their respective input and output impedance conditions. 
  691. .RT
  692. .sp 1P
  693. .LP
  694. 2.2
  695.     \fIOverload point\fR 
  696. .sp 9p
  697. .RT
  698. .PP
  699. The overload point for the analogue\(hyto\(hydigital and
  700. digital\(hyto\(hyanalogue converters should be + 9\ dBm0 \(+- | .3\ dB. 
  701. This assumes 
  702. the same nominal speech level (see Recommendation\ G.232) as for 64\ kbit/s 
  703. PCM, but with a wider margin for the maximum signal level which is likely 
  704. to be 
  705. necessary with conference arrangements. The measurement method of the overload 
  706. point is under study. 
  707. .RT
  708. .sp 1P
  709. .LP
  710. 2.3
  711.     \fINominal reference frequency\fR 
  712. .sp 9p
  713. .RT
  714. .PP
  715. Where a nominal reference frequency of 1000\ Hz is indicated below, the 
  716. actual frequency should be chosen equal to 1020\ Hz. The frequency 
  717. tolerance should be +2 to \(em7\ Hz.
  718. .RT
  719. .sp 1P
  720. .LP
  721. 2.4
  722.     \fITransmission characteristics of the 64 kbit/s (7 kHz) audio\fR 
  723. \fIcodec\fR 
  724. .sp 9p
  725. .RT
  726. .PP
  727. The values and limits specified below should be met with a
  728. 64\ kbit/s (7\ kHz) audio encoder and decoder connected back\(hyto\(hyback. For
  729. practical reasons, the measurements may be performed in a looped configuration 
  730. as shown in Figure\ 9a)/G.722. However, such a looped configuration is 
  731. only 
  732. intended to simulate an actual situation where the encoder and decoder are
  733. located at the two ends of a connection.
  734. .PP
  735. These limits apply to operation in Mode 1.
  736. .RT
  737. .sp 1P
  738. .LP
  739. 2.4.1
  740.     \fINominal bandwidth\fR 
  741. .sp 9p
  742. .RT
  743. .PP
  744. The nominal 3 dB bandwidth is 50 to 7000 Hz.
  745. .RT
  746. .sp 1P
  747. .LP
  748. 2.4.2
  749.     \fIAttenuation/frequency distortion\fR 
  750. .sp 9p
  751. .RT
  752. .PP
  753. The variation with frequency of the attenuation should satisfy the limits 
  754. shown in the mask of Figure\ 10/G.722. The nominal reference frequency 
  755. is 1000\ Hz and the test level is \(em10\ dBm0.
  756. .RT
  757. .sp 1P
  758. .LP
  759. 2.4.3
  760.     \fIAbsolute group delay\fR 
  761. .sp 9p
  762. .RT
  763. .PP
  764. The absolute group delay, defined as the minimum group delay for a sine 
  765. wave signal between\ 50 and 7000\ Hz, should not exceed 4\ ms. The test 
  766. level is \(em10\ dBm0.
  767. .RT
  768. .sp 1P
  769. .LP
  770. 2.4.4
  771.     \fIIdle noise\fR 
  772. .sp 9p
  773. .RT
  774. .PP
  775. The unweighted noise power measured in the frequency range 50 to
  776. 7000\ Hz with no signal at the input port (test point\ A) should not exceed
  777. \(em66\ dBm0. When measured in the frequency range 50\ Hz to 20\ kHz the 
  778. unweighted noise power should not exceed \(em60\ dBm0. 
  779. .bp
  780. .RT
  781. .LP
  782. .rs
  783. .sp 47P
  784. .ad r
  785. \fBFigure 9/G.722, p.\fR 
  786. .sp 1P
  787. .RT
  788. .ad b
  789. .RT
  790. .LP
  791. .bp
  792. .LP
  793. .rs
  794. .sp 19P
  795. .ad r
  796. \fBFigure 10/G.722, p.\fR 
  797. .sp 1P
  798. .RT
  799. .ad b
  800. .RT
  801. .sp 1P
  802. .LP
  803. 2.4.5
  804.     \fISingle frequency noise\fR 
  805. .sp 9p
  806. .RT
  807. .PP
  808. The level of any single frequency (in particular 8000 Hz, the
  809. sampling frequency and its multiples), measured selectively with no signal 
  810. at the input port (test point\ A) should not exceed \(em70\ dBm0. 
  811. .RT
  812. .sp 1P
  813. .LP
  814. 2.4.6
  815.     \fISignal\(hyto\(hytotal distortion ratio\fR 
  816. .sp 9p
  817. .RT
  818. .PP
  819. Under study.
  820. .RT
  821. .sp 1P
  822. .LP
  823. 2.5
  824.     \fITransmission characteristics of the audio parts\fR 
  825. .sp 9p
  826. .RT
  827. .PP
  828. When the measurements indicated below for the audio parts are from audio\(hyto\(hyaudio, 
  829. a looped configuration as shown in Figure\ 9b)/G.722 should be used. The 
  830. audio parts should also meet the specifications of \(sc\ 2.4 with the 
  831. measurement configuration of Figure\ 9b)/G.722.
  832. .RT
  833. .sp 1P
  834. .LP
  835. 2.5.1
  836.     \fIAttenuationB/Ffrequency response of the input\fR 
  837. \fIanti\(hyaliasing\fR \fIfilter\fR 
  838. .sp 9p
  839. .RT
  840. .PP
  841. The in\(hyband and out\(hyof\(hyband attenuation/frequency response of 
  842. the input anti\(hyaliasing filter should satisfy the limits of the mask 
  843. shown in 
  844. Figure\ 11/G.722. The nominal reference frequency is 1000\ Hz and the test 
  845. level for the in\(hyband characteristic is \(em10\ dBm0. Appropriate measurements 
  846. should be made to check the out\(hyof\(hyband characteristic taking into 
  847. account the aliasing due to the 16\ kHz sampling. 
  848. .RT
  849. .sp 1P
  850. .LP
  851. 2.5.2
  852.     \fIAttenuationB/Ffrequency response of the output\fR 
  853. \fIreconstructing\fR \fIfilter\fR 
  854. .sp 9p
  855. .RT
  856. .PP
  857. The in\(hyband and out\(hyof\(hyband attenuation/frequency response of 
  858. the output reconstructing filter should satisfy the limits of the mask 
  859. shown in 
  860. Figure\ 12/G.722. The nominal reference frequency is 1000\ Hz and the test 
  861. level for the in\(hyband characteristic is \(em10\ dBm0. Appropriate measurements 
  862. should be made to check the out\(hyof\(hyband characteristic taking into 
  863. account the aliasing due to the 16\ kHz sampling. The mask of Figure\ 12/G.722 
  864. is valid for the whole of the receive audio part including any pulse amplitude 
  865. modulation distortion and x/sin x\ correction. 
  866. .bp
  867. .RT
  868. .LP
  869. .rs
  870. .sp 20P
  871. .ad r
  872. \fBFigure 11/G.722, p.\fR 
  873. .sp 1P
  874. .RT
  875. .ad b
  876. .RT
  877. .LP
  878. .rs
  879. .sp 21P
  880. .ad r
  881. \fBFigure 12/G.722, p.\fR 
  882. .sp 1P
  883. .RT
  884. .ad b
  885. .RT
  886. .LP
  887. .bp
  888. .sp 1P
  889. .LP
  890. 2.5.3
  891.     \fIGroup\(hydelay distortion with frequency\fR 
  892. .sp 9p
  893. .RT
  894. .PP
  895. The group\(hydelay distortion, taking the minimum value of group delay 
  896. as a reference, should satisfy the limits of the mask shown in 
  897. Figure\ 13/G.722.
  898. .RT
  899. .LP
  900. .rs
  901. .sp 21P
  902. .ad r
  903. \fBFigure 13/G.722, p.\fR 
  904. .sp 1P
  905. .RT
  906. .ad b
  907. .RT
  908. .sp 1P
  909. .LP
  910. 2.5.4
  911.     \fIIdle noise for the receive audio part\fR 
  912. .sp 9p
  913. .RT
  914. .PP
  915. The unweighted noise power of the receive audio part measured in
  916. the frequency range 50\ to 7000\ Hz with a 14\(hybit all\(hyzero signal 
  917. at its input 
  918. should not exceed \(em75\ dBm0.
  919. .RT
  920. .sp 1P
  921. .LP
  922. 2.5.5
  923.     \fISignal\(hyto\(hytotal distortion ratio as a function of input\fR 
  924. \fIlevel\fR 
  925. .sp 9p
  926. .RT
  927. .PP
  928. With a sine wave signal at a frequency excluding simple harmonic
  929. relationships with the 16\ kHz sampling frequency, applied to test point\ 
  930. A, the ratio of signal\(hyto\(hytotal distortion power as a function of 
  931. input level measured unweighted in the frequency range 50\ to 7000\ Hz 
  932. at test point\ B, should 
  933. satisfy the limits of the mask shown in Figure\ 14/G.722. Two measurements
  934. should be performed, one at a frequency of about 1\ kHz and the other at a
  935. frequency of about 6\ kHz.
  936. .RT
  937. .LP
  938. .rs
  939. .sp 17P
  940. .ad r
  941. \fBFigure 14/G.722, p.\fR 
  942. .sp 1P
  943. .RT
  944. .ad b
  945. .RT
  946. .LP
  947. .bp
  948. .sp 1P
  949. .LP
  950. 2.5.6
  951.     \fISignal\(hyto\(hytotal distortion ratio as a function of\fR 
  952. \fIfrequency\fR 
  953. .sp 9p
  954. .RT
  955. .PP
  956. With a sine wave signal at a level of \(em10 dBm0 applied to test
  957. point\ A, the ratio of signal\(hyto\(hytotal distortion power as a function of
  958. frequency measured unweighted in the frequency range 50\ to 7000\ Hz at test
  959. point\ B should satisfy the limits of the mask shown in Figure\ 15/G.722.
  960. .RT
  961. .LP
  962. .rs
  963. .sp 18P
  964. .ad r
  965. \fBFigure 15/G.722, p.\fR 
  966. .sp 1P
  967. .RT
  968. .ad b
  969. .RT
  970. .sp 1P
  971. .LP
  972. 2.5.7
  973.     \fIVariation of gain with input level\fR 
  974. .sp 9p
  975. .RT
  976. .PP
  977. With a sine wave signal at the nominal reference frequency of
  978. 1000\ Hz, but excluding the sub\(hymultiple of the 16\ kHz sampling frequency,
  979. applied to test point\ A, the gain variation as a function of input level
  980. relative to the gain at an input level of \(em10\ dBm0 measured selectively 
  981. at test point\ B, should satisfy the limits of the mask shown in Figure\ 
  982. 16/G.722. 
  983. .RT
  984. .LP
  985. .rs
  986. .sp 24P
  987. .ad r
  988. \fBFigure 16/G.722, p.\fR 
  989. .sp 1P
  990. .RT
  991. .ad b
  992. .RT
  993. .LP
  994. .bp
  995. .sp 1P
  996. .LP
  997. 2.5.8
  998.     \fIIntermodulation\fR 
  999. .sp 9p
  1000. .RT
  1001. .PP
  1002. Under study.
  1003. .RT
  1004. .sp 1P
  1005. .LP
  1006. 2.5.9
  1007.     \fIGo/return crosstalk\fR 
  1008. .sp 9p
  1009. .RT
  1010. .PP
  1011. The crosstalk from the transmit direction to the receive direction should 
  1012. be such that, with a sine wave signal at any frequency in the range 
  1013. 50\ to 7000\ Hz and at a level of +6\ dBm0 applied to test point\ A, the 
  1014. crosstalk level measured selectively at test point\ B should not exceed 
  1015. \(em64\ dBm0. The 
  1016. measurement should be made with a 14\(hybit all\(hyzero digital signal 
  1017. at the input to the receive audio part. 
  1018. .PP
  1019. The crosstalk from the receive direction to the transmit direction
  1020. should be such that, with a digitally simulated sine wave signal at any
  1021. frequency in the range of 50\ to 7000\ Hz and a level of +6\ dBm0 applied 
  1022. to the input of the receive audio part, the crosstalk level measured selectively 
  1023. and with the measurement made digitally at the output of the transmit audio 
  1024. part 
  1025. should not exceed \(em64\ dBm0. The measurement should be made with no 
  1026. signal at 
  1027. test point\ A, but with the test point correctly terminated.
  1028. .RT
  1029. .sp 1P
  1030. .LP
  1031. 2.6
  1032.     \fITranscoding to and from 64 kbit/s PCM\fR 
  1033. .sp 9p
  1034. .RT
  1035. .PP
  1036. For compatibility reasons with 64 kbit/s PCM, transcoding between 64\ kbit/s 
  1037. (7\ kHz) audio coding and 64\ kbit/s PCM should take account of the 
  1038. relevant specifications of Recommendations\ G.712, G.713 and\ G.714. When the
  1039. audio signal is to be heard through a loudspeaker, more stringent
  1040. specifications may be necessary. Further information may be found in
  1041. Appendix\ I.
  1042. .RT
  1043. .sp 2P
  1044. .LP
  1045. \fB3\fR     \fBSB\(hyADPCM encoder principles\fR 
  1046. .sp 1P
  1047. .RT
  1048. .PP
  1049. A block diagram of the SB\(hyADPCM encoder is given in Figure 3/G.722. 
  1050. Block diagrams of the lower and higher sub\(hyband ADPCM encoders are given 
  1051. respectively in Figures\ 4/G.722 and\ 5/G.722.
  1052. .PP
  1053. Main variables used for the descriptions in \(sc\(sc 3 and 4 are
  1054. summarized in Table\ 3/G.722. In these descriptions, index (\fIj\fR ) indicates 
  1055. a value corresponding to the current 16\ kHz sampling interval, index (\fIj\fR 
  1056. \(eml) 
  1057. indicates a value corresponding to the previous 16\ kHz sampling interval,
  1058. index (\fIn\fR ) indicates a value corresponding
  1059. to the current 8\ kHz sampling interval, and index\ (\fIn\fR \(em1)
  1060. indicates a value corresponding to the previous 8\ kHz sampling interval.
  1061. Indices are not used for internal variables, i.e.\ those employed only within
  1062. individual computational blocks.
  1063. .RT
  1064. .sp 1P
  1065. .LP
  1066. 3.1
  1067.     \fITransmit QMF\fR 
  1068. .sp 9p
  1069. .RT
  1070. .PP
  1071. A 24\(hycoefficient QMF is used to compute the lower and higher
  1072. sub\(hyband signal components. The QMF coefficient values, \fIh\fR\d\fIi\fR\u, 
  1073. are 
  1074. given in Table\ 4/G.722.
  1075. .PP
  1076. The output variables, \fIx\fR\d\fIL\fR\u(\fIn\fR ) and
  1077. \fIx\fR\d\fIH\fR\u(\fIn\fR ), are computed in the following way:
  1078. \v'6p'
  1079. .RT
  1080. .ad r
  1081. .ad b
  1082. .RT
  1083. .ad r
  1084. .ad b
  1085. .RT
  1086. .ad r
  1087. .ad b
  1088. .RT
  1089. .ad r
  1090. .ad b
  1091. .RT
  1092. .sp 1P
  1093. .LP
  1094. 3.2
  1095.     \fIDifference signal computation\fR 
  1096. .sp 9p
  1097. .RT
  1098. .PP
  1099. The difference signals, \fIe\fR\d\fIL\fR\u(\fIn\fR ) and
  1100. \fIe\fR\d\fIH\fR\u(\fIn\fR ), are computed by subtracting predicted values,
  1101. \fIs\fR\d\fIL\fR\u(\fIn\fR ) and \fIs\fR\d\fIH\fR\u(\fIn\fR ), from the 
  1102. lower and 
  1103. higher sub\(hyband input values, \fIx\fR\d\fIL\fR\u(\fIn\fR ) and
  1104. \fIx\fR\d\fIH\fR\u(\fIn\fR ):
  1105. \v'6p'
  1106. .RT
  1107. .ad r
  1108. .ad b
  1109. .RT
  1110. .ad r
  1111. .ad b
  1112. .RT
  1113. .LP
  1114. .bp
  1115. .ce
  1116. \fBH.T. [T3.722]\fR 
  1117. .ce
  1118. TABLE\ 3/G.722
  1119. .ce
  1120. \fBVariables used in the SB\(hyADPCM encoder and decoder descriptions\fR 
  1121. .ps 9
  1122. .vs 11
  1123. .nr VS 11
  1124. .nr PS 9
  1125. .TS
  1126. center box;
  1127. cw(48p) | cw(180p) .
  1128. Variable    Description
  1129. _
  1130. .T&
  1131. lw(48p) | lw(180p) .
  1132. x i n     {
  1133. Input value
  1134. (uniform representation)
  1135.  }
  1136. _
  1137. .T&
  1138. lw(48p) | lw(180p) .
  1139. x L, x H    QMF output signals
  1140. _
  1141. .T&
  1142. lw(48p) | lw(180p) .
  1143. S L p, S H p     {
  1144. Pole\(hypredictor output signals
  1145.  }
  1146. _
  1147. .T&
  1148. lw(48p) | lw(180p) .
  1149. a L , i, a H , i     {
  1150. Pole\(hypredictor coefficients
  1151.  }
  1152. _
  1153. .T&
  1154. lw(48p) | lw(180p) .
  1155. r L, r L t, r H     {
  1156. Reconstructed signals (non truncated and truncated)
  1157.  }
  1158. _
  1159. .T&
  1160. lw(48p) | lw(180p) .
  1161. b L , i, b H , i     {
  1162. Zero\(hypredictor coefficients
  1163.  }
  1164. _
  1165. .T&
  1166. lw(48p) | lw(180p) .
  1167. d L, d L t, d H     {
  1168. Quantized difference signals (non truncated and truncated)
  1169.  }
  1170. _
  1171. .T&
  1172. lw(48p) | lw(180p) .
  1173. S L z, S H z     {
  1174. Zero\(hypredictor output signals
  1175.  }
  1176. _
  1177. .T&
  1178. lw(48p) | lw(180p) .
  1179. S L, S H    Predictor output signals
  1180. _
  1181. .T&
  1182. lw(48p) | lw(180p) .
  1183. e L, e H     {
  1184. Difference signals to be quantized
  1185.  }
  1186. _
  1187. .T&
  1188. lw(48p) | lw(180p) .
  1189. \(gr L, \(gr H     {
  1190. Logarithmic quantizer scale factors
  1191.  }
  1192. _
  1193. .T&
  1194. lw(48p) | lw(180p) .
  1195. ?63 L, ?63 H     {
  1196. Quantizer scale factor (linear)
  1197.  }
  1198. _
  1199. .T&
  1200. lw(48p) | lw(180p) .
  1201. I L, I L t, I H     {
  1202. Codewords (non truncated and truncated)
  1203.  }
  1204. _
  1205. .T&
  1206. lw(48p) | lw(180p) .
  1207. P L t, P H     {
  1208. Partially reconstructed signals
  1209.  }
  1210. _
  1211. .T&
  1212. lw(48p) | lw(180p) .
  1213. I L r     {
  1214. Received lower sub\(hyband codeword
  1215.  }
  1216. _
  1217. .T&
  1218. lw(48p) | lw(180p) .
  1219. X o u t    Output value (uniform)
  1220. .TE
  1221. .LP
  1222. \fINote\fR
  1223. \ \(em\ Variables used exclusively within one section are not listed.
  1224. Subscripts L and H refer to lower sub\(hyband and higher sub\(hyband values.
  1225. Subscript Lt denotes values generated from the truncated\ 4\(hybit codeword as
  1226. opposed to the nontruncated 6\(hybit (encoder) or\ 6\(hy, 5\(hy or 4\(hybit (decoder)
  1227. codewords.
  1228. .nr PS 9
  1229. .RT
  1230. .ad r
  1231. \fBTableau 3/G.722 [T3.722], p. 19\fR 
  1232. .sp 1P
  1233. .RT
  1234. .ad b
  1235. .RT
  1236. .LP
  1237. .rs
  1238. .sp 8P
  1239. .ad r
  1240. Blanc
  1241. .ad b
  1242. .RT
  1243. .LP
  1244. .bp
  1245. .ce
  1246. \fBH.T. [T4.722]\fR 
  1247. .ce
  1248. TABLE\ 4/G.722
  1249. .ce
  1250. \fBTransmit and receive OMF coefficient values\fR 
  1251. .ps 9
  1252. .vs 11
  1253. .nr VS 11
  1254. .nr PS 9
  1255. .TS
  1256. center box;
  1257. cw(90p) | cw(90p) .
  1258.  {
  1259. h
  1260. 0\fB\fR\(da\fB1\fR
  1261. , h
  1262. 2
  1263. 3
  1264.  }     {
  1265. \fB\(em\fR
  1266. 0.366211E\(em03
  1267.  }
  1268. .T&
  1269. cw(90p) | cw(90p) .
  1270.  {
  1271. h
  1272. 1\fB\fR\(da\fB1\fR
  1273. , h
  1274. 2
  1275. 2
  1276.  }    \(em0.134277E\(em02
  1277. .T&
  1278. cw(90p) | cw(90p) .
  1279.  {
  1280. h
  1281. 2\fB\fR\(da\fB1\fR
  1282. , h
  1283. 2
  1284. 1
  1285.  }    \(em0.134277E\(em02
  1286. .T&
  1287. cw(90p) | cw(90p) .
  1288.  {
  1289. h
  1290. 3\fB\fR\(da\fB1\fR
  1291. , h
  1292. 2
  1293. 0
  1294.  }     {
  1295. \fB\(em\fR
  1296. 0.646973E\(em02
  1297.  }
  1298. .T&
  1299. cw(90p) | cw(90p) .
  1300.  {
  1301. h
  1302. 4\fB\fR\(da\fB1\fR
  1303. , h
  1304. 1
  1305. 9
  1306.  }     {
  1307. \fB\(em\fR
  1308. 0.146484E\(em02
  1309.  }
  1310. .T&
  1311. cw(90p) | cw(90p) .
  1312.  {
  1313. h
  1314. 5\fB\fR\(da\fB1\fR
  1315. , h
  1316. 1
  1317. 8
  1318.  }    \(em0.190430E\(em01
  1319. .T&
  1320. cw(90p) | cw(90p) .
  1321.  {
  1322. h
  1323. 6\fB\fR\(da\fB1\fR
  1324. , h
  1325. 1
  1326. 7
  1327.  }     {
  1328. \fB\(em\fR
  1329. 0.390625E\(em02
  1330.  }
  1331. .T&
  1332. cw(90p) | cw(90p) .
  1333.  {
  1334. h
  1335. 7\fB\fR\(da\fB1\fR
  1336. , h
  1337. 1
  1338. 6
  1339.  }     {
  1340. \fB\(em\fR
  1341. 0.441895E\(em01
  1342.  }
  1343. .T&
  1344. cw(90p) | cw(90p) .
  1345.  {
  1346. h
  1347. 8\fB\fR\(da\fB1\fR
  1348. , h
  1349. 1
  1350. 5
  1351.  }    \(em0.256348E\(em01
  1352. .T&
  1353. cw(90p) | cw(90p) .
  1354.  {
  1355. h
  1356. 9\fB\fR\(da\fB1\fR
  1357. , h
  1358. 1
  1359. 4
  1360.  }    \(em0.982666E\(em01
  1361. .T&
  1362. cw(90p) | cw(90p) .
  1363. h 1 0, h 1 3    \fB\(em\fR 0.116089E+00
  1364. .T&
  1365. cw(90p) | cw(90p) .
  1366. h 1 1, h\fR 1 2    \fB\(em\fR 0.473145E+00
  1367. _
  1368. .TE
  1369. .nr PS 9
  1370. .RT
  1371. .ad r
  1372. \fBTableau 4/G.722 [T4.722], p. 20\fR 
  1373. .sp 1P
  1374. .RT
  1375. .ad b
  1376. .RT
  1377. .sp 1P
  1378. .LP
  1379. 3.3
  1380.     \fIAdaptive quantizer\fR 
  1381. .sp 9p
  1382. .RT
  1383. .PP
  1384. The difference signals, \fIe\fR\d\fIL\fR\u(\fIn\fR ) and
  1385. \fIe\fR\d\fIH\fR\u(\fIn\fR ), are quantized to 6\ and 2\ bits for the lower and
  1386. higher sub\(hybands respectively. Tables\ 5/G.722 and\ 6/G.722 give the 
  1387. decision levels
  1388. and the output codes for the 6\(hy and 2\(hybit quantizers respectively. 
  1389. In these tables, only the positive decision levels are indicated, the negative 
  1390. levels can be determined by symmetry.\ \fIm\fR\d\fIL\fR\uand\ \fIm\fR\d\fIH\fR\uare 
  1391. indices for the quantizer intervals. The interval boundaries,\ \fILL\fR 
  1392. 6, \fILU\fR 6, \fIHL\fR and\ \fIHU\fR , are scaled by computed scale factors,\ 
  1393. ?63 
  1394. \fI\fI\d\fIL\fR\u(\fIn\fR )
  1395. and\ ?63
  1396. \fI\fI\d\fIH\fR\u(\fIn\fR ) (see \(sc\ 3.5). Indices,\ \fIm\fR\d\fIL\fR\u
  1397. and\ \fIm\fR\d\fIH\fR\u, are then determined to satisfy the following:
  1398. \v'6p'
  1399. .RT
  1400. .ad r
  1401. .ad b
  1402. .RT
  1403. .ad r
  1404. .ad b
  1405. .RT
  1406. .LP
  1407. for the lower and higher sub\(hybands respectively.
  1408. .PP
  1409. The output codes, \fIILN\fR and \fIIHN\fR , represent negative intervals,
  1410. whilst the output codes,\ \fIILP\fR and\ \fIIHP\fR , represent positive 
  1411. intervals. The 
  1412. output codes,\ \fII\fR\d\fIL\fR\u(\fIn\fR ) and\ \fII\fR\d\fIH\fR\u(\fIn\fR 
  1413. ), are then given by: 
  1414. \v'6p'
  1415. .ad r
  1416. .ad b
  1417. .RT
  1418. .ad r
  1419. .ad b
  1420. .RT
  1421. .LP
  1422. for the lower and higher sub\(hybands respectively.
  1423. .bp
  1424. .ce
  1425. \fBH.T. [T5.722]\fR 
  1426. .ce
  1427. TABLE\ 5/G.722
  1428. .ce
  1429. \fBDecision levels and output codes for the 6\(hybit lower sub\(hyband\fR 
  1430. .ce
  1431. \fBquantizer\fR 
  1432. .ps 9
  1433. .vs 11
  1434. .nr VS 11
  1435. .nr PS 9
  1436. .TS
  1437. center box;
  1438. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1439. m L    LL6    LU6    ILN    ILP
  1440. _
  1441. .T&
  1442. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1443. \ 1 \ 2    0.00000 0.06817    0.06817 0.14103    111111 111110    111101 111100
  1444. _
  1445. .T&
  1446. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1447. \ 3 \ 4 \ 5 \ 6     {
  1448. 0.14103
  1449. 0.21389
  1450. 0.29212
  1451. 0.37035
  1452.  }     {
  1453. 0.21389
  1454. 0.29212
  1455. 0.37035
  1456. 0.45482
  1457.  }    011111 011110 011101 011100    111011 111010 111001 111000
  1458. _
  1459. .T&
  1460. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1461. \ 7 \ 8 \ 9 10     {
  1462. 0.45482
  1463. 0.53929
  1464. 0.63107
  1465. 0.72286
  1466.  }     {
  1467. 0.53929
  1468. 0.63107
  1469. 0.72286
  1470. 0.82335
  1471.  }    011011 011010 011001 011000    110111 110110 110101 110100
  1472. _
  1473. .T&
  1474. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1475. 11 12 13 14     {
  1476. 0.82335
  1477. 0.92383
  1478. 1.03485
  1479. 1.14587
  1480.  }     {
  1481. 0.92383
  1482. 1.03485
  1483. 1.14587
  1484. 1.26989
  1485.  }    010111 010110 010101 010100    110011 110010 110001 110000
  1486. _
  1487. .T&
  1488. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1489. 15 16 17 18     {
  1490. 1.26989
  1491. 1.39391
  1492. 1.53439
  1493. 1.67486
  1494.  }     {
  1495. 1.39391
  1496. 1.53439
  1497. 1.67486
  1498. 1.83683
  1499.  }    010011 010010 010001 010000    101111 101110 101101 101100
  1500. _
  1501. .T&
  1502. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1503. 19 20 21 22     {
  1504. 1.83683
  1505. 1.99880
  1506. 2.19006
  1507. 2.38131
  1508.  }     {
  1509. 1.99880
  1510. 2.19006
  1511. 2.38131
  1512. 2.61482
  1513.  }    001111 001110 001101 001100    101011 101010 101001 101000
  1514. _
  1515. .T&
  1516. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1517. 23 24 25 26     {
  1518. 2.61482
  1519. 2.84833
  1520. 3.14822
  1521. 3.44811
  1522.  }     {
  1523. 2.84833
  1524. 3.14822
  1525. 3.44811
  1526. 3.86796
  1527.  }    001011 001010 001001 001000    100111 100110 100101 100100
  1528. _
  1529. .T&
  1530. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1531. 27 28 29 30     {
  1532. 3.86796
  1533. 4.28782
  1534. 4.99498
  1535. 5.70214
  1536.  }    4.28782 4.99498 5.70214 \(if    000111 000110 000101 000100     {
  1537. 100011
  1538. 100010
  1539. 100001
  1540. 100000
  1541.  }
  1542. .TE
  1543. .LP
  1544. \fINote\fR
  1545. \ \(em\ If a transmitted codeword for the lower sub\(hyband signal has been
  1546. transformed, due to transmission errors to one of the four suppressed
  1547. codewords\ \*Q0000XX\*U, the received code word is set at\ \*Q111111\*U.
  1548. .nr PS 9
  1549. .RT
  1550. .ad r
  1551. \fBTable 5/G.722 [T5.722], p.\fR 
  1552. .sp 1P
  1553. .RT
  1554. .ad b
  1555. .RT
  1556. .ce
  1557. \fBH.T. [T6.722]\fR 
  1558. .ce
  1559. TABLE\ 6/G.722
  1560. .ce
  1561. \fBDecision levels and output codes for the 2\(hybit higher sub\(hyband\fR 
  1562. .ce
  1563. \fBquantizer\fR 
  1564. .ps 9
  1565. .vs 11
  1566. .nr VS 11
  1567. .nr PS 9
  1568. .TS
  1569. center box;
  1570. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1571. m H    HL    HH    IHN    IHP
  1572. _
  1573. .T&
  1574. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1575. 1 2    0 1.10156    1.10156 \(if    01 00    11 10
  1576. _
  1577. .TE
  1578. .nr PS 9
  1579. .RT
  1580. .ad r
  1581. \fBTable 6/G.722 [T6.722], p.\fR 
  1582. .sp 1P
  1583. .RT
  1584. .ad b
  1585. .RT
  1586. .LP
  1587. .bp
  1588. .sp 2P
  1589. .LP
  1590. 3.4
  1591.     \fIInverse adaptive quantizers\fR 
  1592. .sp 1P
  1593. .RT
  1594. .sp 1P
  1595. .LP
  1596. 3.4.1
  1597.     \fIInverse adaptive quantizer in the lower sub\(hyband ADPCM encoder\fR 
  1598. .sp 9p
  1599. .RT
  1600. .PP
  1601. The 
  1602. lower sub\(hyband
  1603. output code, \fII\fR\d\fIL\fR\u(\fIn\fR ), is truncated by two bits to 
  1604. produce\ \fII\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR ). The 4\(hybit 
  1605. codeword,\ \fII\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR ), is converted to the 
  1606. truncated
  1607. quantized difference signal
  1608. , \fId\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR ), using the
  1609. \fIQL\fR 4\uD\dlF261\u1\d output values of Table\ 7/G.722, and scaled by the 
  1610. scale
  1611. factor
  1612. ,\ ?63
  1613. \fI\fI\d\fIL\fR\u(\fIn\fR ):
  1614. \v'6p'
  1615. .RT
  1616. .ad r
  1617. .ad b
  1618. .RT
  1619. .LP
  1620. where sgn [\fII\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR )) is derived from the sign of
  1621. \fIe\fR\d\fIL\fR\u(\fIn\fR ) defined in Equation\ 3\(hy9.
  1622. .PP
  1623. There is a unique mapping, shown in Table 7/G.722, between four
  1624. adjacent 6\(hybit quantizer intervals and the\ \fIQL\fR 4\uD\dlF261\u1\d 
  1625. output values. 
  1626. \fIQL\fR 4\uD\dlF261\u1\d[\fII\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR )] is determined 
  1627. in two steps: first determination of the 
  1628. quantizer interval index
  1629. ,\ \fIm\fR\d\fIL\fR\u,
  1630. corresponding to\ \fII\fR\d\fIL\fR\u(\fIn\fR ) from Table\ 5/G.722, and then
  1631. determination of\ \fIQ\fR\d\fIL\fR\u | \uD\dlF261\u1\d(\fIm\fR\d\fIL\fR\u) 
  1632. by reference to 
  1633. Table\ 7/G.722.
  1634. .ce
  1635. \fBH.T. [T7.722]\fR 
  1636. .ce
  1637. TABLE\ 7/G.722
  1638. .ce
  1639. \fBOutput values and multipliers for 6, 5 and 4\(hybit lower sub\(hyband\fR 
  1640. .ce
  1641. \fBinverse quantizers\fR 
  1642. .ps 9
  1643. .vs 11
  1644. .nr VS 11
  1645. .nr PS 9
  1646. .TS
  1647. center box;
  1648. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1649. m L    QL6\uD\dlF261\u1\d    QL5\uD\dlF261\u1\d    QL4\uD\dlF261\u1\d    W L
  1650. _
  1651. .T&
  1652. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1653. \fB.\fR \ 1 \ 2    \fB.\fR 0.03409 0.10460     {
  1654. \fB.\fR
  1655. 0.06817
  1656. \fB.\fR
  1657.  }     {
  1658. 0.0000
  1659. \fB.\fR
  1660. \fB.\fR
  1661.  }     {
  1662. \(em0.02930
  1663. \fB.\fR
  1664. \fB.\fR
  1665.  }
  1666. _
  1667. .T&
  1668. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1669. \ 3 \ 4 \ 5 \ 6     {
  1670. 0.17746
  1671. 0.25300
  1672. 0.33124
  1673. 0.41259
  1674.  }     {
  1675. 0.21389
  1676. \fB.\fR
  1677. 0.37035
  1678. \fB.\fR
  1679.  }     {
  1680. \fB.\fR
  1681. 0.29212
  1682. \fB.\fR
  1683. \fB.\fR
  1684.  }     {
  1685. \fB.\fR
  1686. \(em0.01465
  1687. \fB.\fR
  1688. \fB.\fR
  1689.  }
  1690. _
  1691. .T&
  1692. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1693. \ 7 \ 8 \ 9 10     {
  1694. 0.49706
  1695. 0.58518
  1696. 0.67697
  1697. 0.77310
  1698.  }     {
  1699. 0.53929
  1700. \fB.\fR
  1701. 0.72286
  1702. \fB.\fR
  1703.  }     {
  1704. \fB.\fR
  1705. 0.63107
  1706. \fB.\fR
  1707. \fB.\fR
  1708.  }     {
  1709. \fB.\fR
  1710. \ 0.02832
  1711. \fB.\fR
  1712. \fB.\fR
  1713.  }
  1714. _
  1715. .T&
  1716. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1717. 11 12 13 14     {
  1718. 0.87359
  1719. 0.97934
  1720. 1.09036
  1721. 1.20788
  1722.  }     {
  1723. 0.92383
  1724. \fB.\fR
  1725. 1.14587
  1726. \fB.\fR
  1727.  }     {
  1728. \fB.\fR
  1729. 1.03485
  1730. \fB.\fR
  1731. \fB.\fR
  1732.  }     {
  1733. \fB.\fR
  1734. \ 0.08398
  1735. \fB.\fR
  1736. \fB.\fR
  1737.  }
  1738. _
  1739. .T&
  1740. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1741. 15 16 17 18     {
  1742. 1.33191
  1743. 1.46415
  1744. 1.60462
  1745. 1.75585
  1746.  }     {
  1747. 1.39391
  1748. \fB.\fR
  1749. 1.67486
  1750. \fB.\fR
  1751.  }     {
  1752. \fB.\fR
  1753. 1.53439
  1754. \fB.\fR
  1755. \fB.\fR
  1756.  }     {
  1757. \fB.\fR
  1758. \ 0.16309
  1759. \fB.\fR
  1760. \fB.\fR
  1761.  }
  1762. _
  1763. .T&
  1764. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1765. 19 20 21 22     {
  1766. 1.91782
  1767. 2.09443
  1768. 2.28568
  1769. 2.49806
  1770.  }     {
  1771. 1.99880
  1772. \fB.\fR
  1773. 2.38131
  1774. \fB.\fR
  1775.  }     {
  1776. \fB.\fR
  1777. 2.19006
  1778. \fB.\fR
  1779. \fB.\fR
  1780.  }     {
  1781. \fB.\fR
  1782. \ 0.26270
  1783. \fB.\fR
  1784. \fB.\fR
  1785.  }
  1786. _
  1787. .T&
  1788. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1789. 23 24 25 26     {
  1790. 2.73157
  1791. 2.99827
  1792. 3.29816
  1793. 3.65804
  1794.  }     {
  1795. 2.84833
  1796. \fB.\fR
  1797. 3.44811
  1798. \fB.\fR
  1799.  }     {
  1800. \fB.\fR
  1801. 3.14822
  1802. \fB.\fR
  1803. \fB.\fR
  1804.  }     {
  1805. \fB.\fR
  1806. \ 0.58496
  1807. \fB.\fR
  1808. \fB.\fR
  1809.  }
  1810. _
  1811. .T&
  1812. cw(36p) | cw(48p) | cw(48p) | cw(48p) | cw(48p) .
  1813. 27 28 29 30     {
  1814. 4.07789
  1815. 4.64140
  1816. 5.34856
  1817. 6.05572
  1818.  }     {
  1819. 4.28782
  1820. \fB.\fR
  1821. 5.70214
  1822. \fB.\fR
  1823.  }     {
  1824. \fB.\fR
  1825. 4.99498
  1826. \fB.\fR
  1827. \fB.\fR
  1828.  }     {
  1829. \fB.\fR
  1830. \ 1.48535
  1831. \fB.\fR
  1832. \fB.\fR
  1833.  }
  1834. _
  1835. .TE
  1836. .nr PS 9
  1837. .RT
  1838. .ad r
  1839. \fBTable 7/G.722 [T7.722], p.\fR 
  1840. .sp 1P
  1841. .RT
  1842. .ad b
  1843. .RT
  1844. .LP
  1845. .bp
  1846. .sp 1P
  1847. .LP
  1848. 3.4.2
  1849.     \fIInverse adaptive quantizer in the higher sub\(hyband ADPCM\fR 
  1850. \fIencoder\fR 
  1851. .sp 9p
  1852. .RT
  1853. .PP
  1854. The 
  1855. higher sub\(hyband
  1856. output code, \fII\fR\d\fIH\fR\u(\fIn\fR ) is converted to the quantized 
  1857. difference signal,\ \fId\fR\d\fIH\fR\u(\fIn\fR ), 
  1858. using the\ \fIQ\fR 2\uD\dlF261\u1\d output values of Table\ 8/G.722 and 
  1859. scaled by the scale factor,\ ?63\fI\fI\d\fIH\fR\u(\fIn\fR ): 
  1860. \v'6p'
  1861. .RT
  1862. .ad r
  1863. .ad b
  1864. .RT
  1865. .LP
  1866. where sgn[\fII\fR\d\fIH\fR\u(\fIn\fR )] is derived from the sign of
  1867. \fIe\fR\d\fIH\fR\u(\fIn\fR ) defined in Equation\ (3\(hy10), and where
  1868. \fIQ\fR\d2\u\uD\dlF261\u1\d[\fII\fR\d\fIH\fR\u(\fIn\fR )] is determined 
  1869. in two steps: first 
  1870. determine the quantizer interval index,\ \fIm\fR\d\fIH\fR\u, corresponding
  1871. to\ \fII\fR\d\fIH\fR\u(\fIn\fR ) from Table\ 6/G.722 and then determine
  1872. \fIQ\fR 2\uD\dlF261\u1\d(\fIm\fR\d\fIH\fR\u) by reference to Table\ 8/G.722.
  1873. .ce
  1874. \fBH.T. [T8.722]\fR 
  1875. .ce
  1876. TABLE\ 8/G.722
  1877. .ce
  1878. \fBOutput values and multipliers for the 2\(hybit higher sub\(hyband\fR 
  1879. .ce
  1880. \fBquantizer\fR 
  1881. .ps 9
  1882. .vs 11
  1883. .nr VS 11
  1884. .nr PS 9
  1885. .TS
  1886. center box;
  1887. cw(36p) | cw(48p) | cw(48p) .
  1888. m H    Q2\uD\dlF261\u1\d    W H
  1889. _
  1890. .T&
  1891. cw(36p) | cw(48p) | cw(48p) .
  1892. 1    0.39453    \(em0.10449
  1893. .T&
  1894. cw(36p) | cw(48p) | cw(48p) .
  1895. 2    1.80859    \ 0.38965
  1896. _
  1897. .TE
  1898. .nr PS 9
  1899. .RT
  1900. .ad r
  1901. \fBTableau 8/G.722 [T8.722],\fR 
  1902. .sp 1P
  1903. .RT
  1904. .ad b
  1905. .RT
  1906. .LP
  1907. .sp 1
  1908. .sp 1P
  1909. .LP
  1910. 3.5
  1911.     \fIQuantizer adaptation\fR 
  1912. .sp 9p
  1913. .RT
  1914. .PP
  1915. This block defines ?63
  1916. \fI\fI\d\fIL\fR\u(\fIn\fR ) and
  1917. ?63
  1918. \fI\fI\d\fIH\fR\u(\fIn\fR ), the scaling factors for the lower and higher
  1919. sub\(hyband quantizers. The scaling factors are updated in the log domain and
  1920. subsequently converted to a linear representation. For the lower sub\(hyband, 
  1921. the input is\ \fII\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR ), the codeword truncated 
  1922. to preserve the four most significant bits. For the higher sub\(hyband, 
  1923. the 2\(hybit quantizer 
  1924. output, \fII\fR\d\fIH\fR\u(\fIn\fR ), is used directly.
  1925. .PP
  1926. Firstly the log scaling factors, ?63
  1927. \fI\fI\d\fIL\fR\u(\fIn\fR ) and
  1928. ?63
  1929. \fI\fI\d\fIH\fR\u(\fIn\fR ), are updated as follows:
  1930. \v'6p'
  1931. .RT
  1932. .ad r
  1933. \fI\fI\fI\fR 
  1934. .ad b
  1935. .RT
  1936. .ad r
  1937. .ad b
  1938. .RT
  1939. .LP
  1940. where \fIW\fR\d\fIL\fR\uand \fIW\fR\d\fIH\fR\uare logarithmic scaling factors 
  1941. multipliers given in Tables\ 7/G.722 and\ 8/G.722, and B is a 
  1942. leakage constant
  1943. equal
  1944. to\ 127/128.
  1945. .PP
  1946. Then the 
  1947. log scaling factors
  1948. are limited, according
  1949. to:
  1950. \v'6p'
  1951. .ad r
  1952. .ad b
  1953. .RT
  1954. .ad r
  1955. .ad b
  1956. .RT
  1957. .PP
  1958. Finally, the 
  1959. linear scaling factors
  1960. are computed from the
  1961. log scaling factors, using an approximation of the inverse log\d2\ufunction:
  1962. \v'6p'
  1963. .ad r
  1964. .ad b
  1965. .RT
  1966. .ad r
  1967. .ad b
  1968. .RT
  1969. .LP
  1970. where ?63
  1971. \fI\fI\d\fIm\fR\\d\fIi\fR\\d\fIn\fR\uis equal to half the quantizer step 
  1972. size of the 
  1973. 14\ bit analogue\(hyto\(hydigital converter.
  1974. .bp
  1975. .sp 2P
  1976. .LP
  1977. 3.6
  1978.     \fIAdaptive prediction\fR 
  1979. .sp 1P
  1980. .RT
  1981. .sp 1P
  1982. .LP
  1983. 3.6.1
  1984.     \fIPredicted value computations\fR 
  1985. .sp 9p
  1986. .RT
  1987. .PP
  1988. The adaptive predictors compute predicted signal values,
  1989. \fIs\fR\d\fIL\fR\u(\fIn\fR ) and\ \fIs\fR\d\fIH\fR\u(\fIn\fR ), for the 
  1990. lower and higher sub\(hybands respectively. 
  1991. .PP
  1992. Each 
  1993. adaptive predictor
  1994. comprises two sections: a second\(hyorder section that models poles, and 
  1995. a sixth\(hyorder section that models zeroes in the input signal. 
  1996. .PP
  1997. The second order 
  1998. pole sections
  1999. (coefficients \fIa\fR\d\fIL\fR\\d,\u\fI\d\fIi\fR\uand\ \fIa\fR\d\fIH\fR\\d,\u\fIi\fR 
  2000. ) use the quantized reconstructed signals, 
  2001. \fIr\fRL\fI\d\fIt\fR\u(\fIn\fR ) and\ \fIr\fR\d\fIH\fR\u(\fIn\fR ), for 
  2002. prediction. The 
  2003. sixth order 
  2004. zero sections
  2005. (coefficients\ \fIb\fR\d\fIL\fR\\d,\u\fI\fI\d\fIi\fR\u) and
  2006. \fIb\fR\d\fIH\fR\\d,\u\fIi\fR ) use the quantized difference
  2007. signals,\ \fId\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR ) and\ \fId\fR\d\fIH\fR\u(\fIn\fR 
  2008. ). The 
  2009. zero\(hybased predicted signals,\ \fIs\fR\d\fIL\fR\\d\fIz\fR\u(\fIn\fR )
  2010. and\ \fIs\fR\d\fIH\fR\\d\fIz\fR\u(\fIn\fR ), are also employed to compute 
  2011. partially 
  2012. reconstructed signals as described in \(sc\ 3.6.2.
  2013. .PP
  2014. Firstly, the outputs of the pole sections are computed as
  2015. follows:
  2016. \v'6p'
  2017. .RT
  2018. .ad r
  2019. .ad b
  2020. .RT
  2021. .ad r
  2022. .ad b
  2023. .RT
  2024. .PP
  2025. Similarly, the outputs of the zero sections are computed as
  2026. follows:
  2027. \v'6p'
  2028. .ad r
  2029. .ad b
  2030. .RT
  2031. .ad r
  2032. .ad b
  2033. .RT
  2034. .PP
  2035. Then, the intermediate predicted values are summed to produce the predicted 
  2036. signal values: 
  2037. \v'6p'
  2038. .ad r
  2039. .ad b
  2040. .RT
  2041. .ad r
  2042. .ad b
  2043. .RT
  2044. .sp 1P
  2045. .LP
  2046. 3.6.2
  2047.     \fIReconstructed signal computation\fR 
  2048. .sp 9p
  2049. .RT
  2050. .PP
  2051. The quantized reconstructed signals, \fIr\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR 
  2052. ) and\ \fIr\fR\d\fIH\fR\u(\fIn\fR ), are computed as follows: 
  2053. \v'6p'
  2054. .RT
  2055. .ad r
  2056. .ad b
  2057. .RT
  2058. .ad r
  2059. .ad b
  2060. .RT
  2061. .PP
  2062. The partially reconstructed signals, \fIp\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR 
  2063. ) and \fIp\dH\u\fR (\fIn\fR ), used for the pole section adaptation, are 
  2064. then 
  2065. computed:
  2066. \v'6p'
  2067. .ad r
  2068. .ad b
  2069. .RT
  2070. .ad r
  2071. .ad b
  2072. .RT
  2073. .LP
  2074. .bp
  2075. .sp 1P
  2076. .LP
  2077. 3.6.3
  2078.     \fIPole section adaptation\fR 
  2079. .sp 9p
  2080. .RT
  2081. .PP
  2082. The second order pole section is adapted by updating the
  2083. coefficients,\ \fIa\fR\d\fIL\fR\\d,\\d1\u, \fIa\fR\d\fIH\fR\\d,\\d1\u, 
  2084. \fIa\fR\d\fIH\fR\\d,\\d2\u, using a simplified gradient algorithm: 
  2085. \v'6p'
  2086. .RT
  2087. .ad r
  2088. .ad b
  2089. .RT
  2090. .ad r
  2091. .ad b
  2092. .RT
  2093. .LP
  2094. where
  2095. \v'6p'
  2096. .ad r
  2097. .ad b
  2098. .RT
  2099. .ad r
  2100. .ad b
  2101. .RT
  2102. .LP
  2103. with
  2104. \v'6p'
  2105. .ad r
  2106. .ad b
  2107. .RT
  2108. .LP
  2109. and
  2110. \v'6p'
  2111. .ad r
  2112. .ad b
  2113. .RT
  2114. .PP
  2115. Then the following stability constraints are imposed:
  2116. \v'6p'
  2117. .ad r
  2118. .ad b
  2119. .RT
  2120. .ad r
  2121. .ad b
  2122. .RT
  2123. .PP
  2124. \fIa\fR\d\fIH\fR\\d,\\d1\u(\fIn\fR ) and \fIa\fR\d\fIH\fR\\d,\\d2\u(\fIn\fR 
  2125. ) are 
  2126. similarly computed, replacing\ \fIa\fR\d\fIL\fR\\d,\\d1\u(\fIn\fR ),
  2127. \fIa\fR\d\fIL\fR\\d,\\d2\u(\fIn\fR ) and \fIP\fR\d\fIL\fR\\d\fIt\fR\u | \fIn\fR 
  2128. by\ \fIa\fR\d\fIH\fR\\d,\\d1\u(\fIn\fR ), \fIa\fR\d\fIH\fR\\d,\\d2\u(\fIn\fR )
  2129. and\ \fIP\fR\d\fIH\fR\u(\fIn\fR ), respectively.
  2130. .sp 1P
  2131. .LP
  2132. 3.6.4
  2133.     \fIZero section adaptation\fR 
  2134. .sp 9p
  2135. .RT
  2136. .PP
  2137. The sixth order zero predictor is adapted by updating the
  2138. coefficients\ \fIb\fR\d\fIL\fR\\d,\u\fI\fI\d\fIi\fR\uand\ \fIb\fR\d\fIH\fR\\d,\u\fI\fI\d\fIi\fR\uusing 
  2139. a simplified 
  2140. gradient algorithm:
  2141. \v'6p'
  2142. .RT
  2143. .ad r
  2144. .ad b
  2145. .RT
  2146. .LP
  2147. for \fIi\fR = 1, 2\ . |  | \ 6
  2148. .LP
  2149. and with
  2150. .ad r
  2151. .ad b
  2152. .RT
  2153. .LP
  2154. where \fIb\fR\d\fIL\fR\\d,\u\fI\fI\d\fIi\fR\u | \fIn\fR ) is implictly 
  2155. limited to \(+- | . 
  2156. .PP
  2157. \fIb\fR\d\fIH\fR\\d,\u\fI\fI\d\fIi\fR\u(\fIn\fR ) are similarly updated,
  2158. replacing\ \fIb\fR\d\fIL\fR\\d,\u\fI\fI\d\fIi\fR\u(\fIn\fR ) and\ \fId\fR\d\fIL\fR\\d\fIt\fR\u(\fIn\fR 
  2159. ) by\ \fIb\fR\d\fIH\fR\\d,\u\fI\fI\d\fIi\fR\u(\fIn\fR ) and\ \fId\fR\d\fIH\fR\u(\fIn\fR 
  2160. respectively.
  2161. .sp 2P
  2162. .LP
  2163. \fB4\fR     \fBSB\(hyADPCM decoder principles\fR 
  2164. .sp 1P
  2165. .RT
  2166. .PP
  2167. A block diagram of the SB\(hyADPCM decoder is given in Figure 6/G.722 and 
  2168. block diagrams of the lower and higher sub\(hyband ADPCM decoders are given 
  2169. respectively in Figures\ 7/G.722 and\ 8/G.722.
  2170. .PP
  2171. The input to the lower sub\(hyband ADPCM decoder, \fII\fR\d\fIL\fR\\d\fIr\fR\u, 
  2172. may differ from\ \fII\fR\d\fIL\fR\ueven in the absence of transmission 
  2173. errors, in that one 
  2174. or two least significant bits may have been replaced by data.
  2175. .bp
  2176. .RT
  2177. .sp 2P
  2178. .LP
  2179. 4.1
  2180.     \fIInverse adaptive quantizer\fR 
  2181. .sp 1P
  2182. .RT
  2183. .sp 1P
  2184. .LP
  2185. 4.1.1
  2186.     \fIInverse adaptive quantizer selection for the lower sub\(hyband\fR 
  2187. \fIADPCM decoder\fR 
  2188. .sp 9p
  2189. .RT
  2190. .PP
  2191. According to the received indication of the mode of operation the number 
  2192. of least significant bits which should be truncated from the input 
  2193. codeword\ \fII\fR\d\fIL\fR\\d\fIr\fR\u, and the choice of the inverse adaptive 
  2194. quantizer 
  2195. are determined, as shown in Table\ 2/G.722.
  2196. .PP
  2197. For operation in mode 1, the 6\(hybit codeword,
  2198. \fII\fR\d\fIL\fR\\d\fIr\fR\u(\fIn\fR ), is converted to the quantized difference, 
  2199. \fId\fR\d\fIL\fR\u(\fIn\fR ), according to\ \fIQL\fR 6\uD\dlF261\u1\d output 
  2200. values of 
  2201. Table\ 7/G.722, and scaled by the scale factor,
  2202. \ ?63
  2203. \fI\fI\d\fIL\fR\u(\fIn\fR ):
  2204. \v'6p'
  2205. .RT
  2206. .ad r
  2207. .ad b
  2208. .RT
  2209. .LP
  2210. where sgn[\fII\fR\d\fIL\fR\\d\fIr\fR\u(\fIn\fR )] is derived from the sign of
  2211. \fII\fR\d\fIL\fR\u(\fIn\fR ) defined in equation (3\(hy9).
  2212. .PP
  2213. Similarly, for operations in mode 2 or mode 3, the 
  2214. truncated   codeword
  2215. (by one or two bits) is converted to the quantized difference
  2216. signal, \fId\fR\d\fIL\fR\u(\fIn\fR ), according to\ \fIQL\fR 5\uD\dlF261\u1\d\fR 
  2217. or\ \fIQL\fR 4\uD\dlF261\u1\d\fR output values of Table\ 7/G.722 respectively.
  2218. .PP
  2219. \fR There are unique mappings, shown in Table 7/G.722, between two or
  2220. four adjacent 6\(hybit quantizer intervals and the\ \fIQL\fR 5\uD\dlF261\u1\d 
  2221. or\ \fIQL\fR 4\uD\dlF261\u1\d output values respectively. 
  2222. .PP
  2223. In the computations above, the output values are determined in two
  2224. steps: first determination of the quantizer interval index,\ \fIm\fR\d\fIL\fR\u, 
  2225. corresponding to\ \fII\fR\d\fIL\fR\\d\fIr\fR\u(\fIn\fR ) from Table\ 5/G.722, 
  2226. and then 
  2227. determination of the output values corresponding to\ \fIm\fR\d\fIL\fR\uby 
  2228. reference to 
  2229. Table\ 7/G.722.
  2230. .PP
  2231. The inverse adaptive quantizer, used for the computation of the
  2232. predicted value and for adaptation of the quantizer and predictor, is described 
  2233. in \(sc\ 3.4.1, but with\ \fII\fR\d\fIL\fR\u(\fIn\fR ) replaced 
  2234. by\ \fII\fR\d\fIL\fR\\d\fIr\fR\u(\fIn\fR ).
  2235. .RT
  2236. .sp 1P
  2237. .LP
  2238. 4.1.2
  2239.     \fIInverse adaptive quantizer for the higher sub\(hyband ADPCM\fR 
  2240. \fIdecoder\fR 
  2241. .sp 9p
  2242. .RT
  2243. .PP
  2244. See \(sc 3.4.2.
  2245. .RT
  2246. .sp 1P
  2247. .LP
  2248. 4.2
  2249.     \fIQuantizer adaptation\fR 
  2250. .sp 9p
  2251. .RT
  2252. .PP
  2253. See \(sc 3.5.
  2254. .RT
  2255. .sp 2P
  2256. .LP
  2257. 4.3
  2258.     \fIAdaptive prediction\fR 
  2259. .sp 1P
  2260. .RT
  2261. .sp 1P
  2262. .LP
  2263. 4.3.1
  2264.     \fIPredicted value computation\fR 
  2265. .sp 9p
  2266. .RT
  2267. .PP
  2268. See \(sc 3.6.1.
  2269. .RT
  2270. .sp 1P
  2271. .LP
  2272. 4.3.2
  2273.     \fIReconstructed signal computation\fR 
  2274. .sp 9p
  2275. .RT
  2276. .PP
  2277. See \(sc 3.6.2.
  2278. .PP
  2279. The output reconstructed signal for the lower sub\(hyband ADPCM
  2280. decoder,\ \fIr\fR\d\fIL\fR\u(\fIn\fR ), is computed from the quantized 
  2281. difference 
  2282. signal,\ \fId\fR\d\fIL\fR\u(\fIn\fR ), as follows:
  2283. \v'6p'
  2284. .RT
  2285. .ad r
  2286. .ad b
  2287. .RT
  2288. .sp 1P
  2289. .LP
  2290. 4.3.3
  2291.     \fIPole section adaptation\fR 
  2292. .sp 9p
  2293. .RT
  2294. .PP
  2295. See \(sc 3.6.3.
  2296. .RT
  2297. .sp 1P
  2298. .LP
  2299. 4.3.4
  2300.     \fIZero section adaptation\fR 
  2301. .sp 9p
  2302. .RT
  2303. .PP
  2304. See \(sc 3.6.4.
  2305. .RT
  2306. .sp 1P
  2307. .LP
  2308. 4.4
  2309.     \fIReceive QMF\fR 
  2310. .sp 9p
  2311. .RT
  2312. .PP
  2313. A 24\(hycoefficient QMF is used to reconstruct the output signal,
  2314. \fIx\fR\do\\du\\dt\u(
  2315. \fIj\fR ), from the reconstructed lower and
  2316. higher sub\(hyband
  2317. signals,\ \fIr\fR\d\fIL\fR\u(\fIn\fR ) and\ \fIr\fR\d\fIH\fR\u(\fIn\fR 
  2318. ). The QMF 
  2319. coefficient values,\ \fIh\fR\d\fIi\fR\u, are the same as those used in 
  2320. the transmit QMF and are given in Table\ 4/G.722. 
  2321. .bp
  2322. .PP
  2323. The output signals, \fIx\fR\do\\du\\dt\u(
  2324. \fIj\fR ) and
  2325. \fIx\fR\do\\du\\dt\u(
  2326. \fIj\fR \ +\ 1), are computed in the following
  2327. way:
  2328. \v'6p'
  2329. .RT
  2330. .ad r
  2331. .ad b
  2332. .RT
  2333. .ad r
  2334. .ad b
  2335. .RT
  2336. .LP
  2337. where
  2338. \v'6p'
  2339. .ad r
  2340. .ad b
  2341. .RT
  2342. .ad r
  2343. .ad b
  2344. .RT
  2345. .sp 2P
  2346. .LP
  2347. \fB5\fR     \fBComputational details for QMF\fR 
  2348. .sp 1P
  2349. .RT
  2350. .sp 1P
  2351. .LP
  2352. 5.1
  2353.     \fIInput and output signals\fR 
  2354. .sp 9p
  2355. .RT
  2356. .PP
  2357. Table 9/G.722 defines the input and output signals for the transmit and 
  2358. receive\ QMF. All input and output signals have 16\(hybit\ word lengths, 
  2359. which are limited to a range of \(em16384 to\ 16383 in\ 2's complement 
  2360. notation. Note that the most significant magnitude bit of the\ A/D output 
  2361. and the\ D/A input appears at the third bit location in\ XIN and\ XOUT, 
  2362. respectively. 
  2363. .RT
  2364. .ce
  2365. \fBH.T. [T9.722]\fR 
  2366. .ce
  2367. TABLE\ 9/G.722
  2368. .ce
  2369. \fBRepresentation of input and output signals\fR 
  2370. .ps 9
  2371. .vs 11
  2372. .nr VS 11
  2373. .nr PS 9
  2374. .TS
  2375. center box;
  2376. cw(228p) .
  2377. Transmit QMF
  2378. .TE
  2379. .TS
  2380. center box;
  2381. lw(36p) | cw(24p) | cw(84p) | cw(84p) .
  2382.     Name    Binary representation    Description
  2383. _
  2384. .T&
  2385. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2386. Input    XIN     {
  2387. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2388.  }     {
  2389. Input value
  2390. (uniformly quantized)
  2391.  }
  2392. .T&
  2393. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2394. Output    XL     {
  2395. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2396.  }     {
  2397. Output signal for lower sub\(hyband encoder
  2398.  }
  2399. .T&
  2400. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2401. Output    XH     {
  2402. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2403.  }     {
  2404. Output signal for higher sub\(hyband encoder
  2405.  }
  2406. _
  2407. .T&
  2408. cw(228p) .
  2409. Receive QMF
  2410. _
  2411. .T&
  2412. lw(36p) | cw(24p) | cw(84p) | cw(84p) .
  2413.     Name    Binary representation    Description
  2414. _
  2415. .T&
  2416. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2417. Input    RL     {
  2418. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2419.  }     {
  2420. Lower sub\(hyband reconstructed signal
  2421.  }
  2422. .T&
  2423. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2424. Input    RH     {
  2425. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2426.  }     {
  2427. Higher sub\(hyband reconstructed signal
  2428.  }
  2429. .T&
  2430. lw(36p) | lw(24p) | cw(84p) | lw(84p) .
  2431. Output    XOUT     {
  2432. S, S, \(em2, \(em3, . |  | , \(em14, \(em15
  2433.  }     {
  2434. Output value
  2435. (uniformly quantized)
  2436.  }
  2437. .TE
  2438. .LP
  2439. \fINote\fR
  2440. \ \(em\ XIN and XOUT are represented in a sign\(hyextended 15\(hybit format,
  2441. where the LSB is set to \*Q0\*U for 14\(hybit converters.
  2442. .nr PS 9
  2443. .RT
  2444. .ad r
  2445. \fBTable 9/G.722 [T9.722], p.\fR 
  2446. .sp 1P
  2447. .RT
  2448. .ad b
  2449. .RT
  2450. .LP
  2451. .bp
  2452. .sp 1P
  2453. .LP
  2454. 5.2
  2455.     \fIDescription of variables and detailed specification of sub\(hyblocks\fR 
  2456. .sp 9p
  2457. .RT
  2458. .PP
  2459. This section contains a detailed expansion of the transmit and
  2460. receive\ QMF. The expansions are illustrated in Figures\ 17/G.722 and\ 18/G.722
  2461. with the internal variables given in Table\ 10/G.722, and the\ QMF coefficients 
  2462. given in Table\ 11/G.722. The word lengths of internal variables, XA, XB 
  2463. and\ WD must be equal to or greater than 24\ bits (see Note). The other 
  2464. internal 
  2465. variables have a minimum of 16 bit word lengths. A brief functional description 
  2466. and the full specification is given for each sub\(hyblock. 
  2467. .PP
  2468. \fR The notations used in the block descriptions are as
  2469. follows:
  2470. .RT
  2471. .LP
  2472.     >
  2473. > | 
  2474.     denotes an \fIn\fR \(hybit arithmetic shift right operation
  2475. (sign extension),
  2476. .LP
  2477.     +
  2478.     denotes arithmetic addition with saturation control which
  2479. forces the result to the minimum or maximum representable value
  2480. in case of underflow or overflow, respectively,
  2481. .LP
  2482.     \(em
  2483.     denotes arithmetic subtraction with saturation control
  2484. which forces the result to the minimum or maximum representable
  2485. value in case of underflow or overflow, respectively.
  2486. .LP
  2487.     *
  2488.     denotes arithmetic multiplication which can be performed
  2489. with either truncation or rounding,
  2490. .LP
  2491.     <
  2492.     denotes the \*Qless than\*U condition as \fIx\fR < | fIy\fR ; \fIx\fR is less
  2493. than \fIy\fR ,
  2494. .LP
  2495.     >
  2496.     denotes the \*Qgreater than\*U condition, as \fIx\fR > | fIy\fR ; \fIx\fR is
  2497. greater than \fIy\fR ,
  2498. .LP
  2499.     =
  2500.     denotes the substitution of the right\(hyhand variable for the
  2501. left\(hyhand variable.
  2502. .PP
  2503. \fINote\ 1\fR \ \(em\ Some freedom is offered for the implementation of
  2504. the accumulation process in the QMF: the word lengths of the internal variables 
  2505. can be equal to or greater than 24\ bits, and the arithmetic multiplications 
  2506. can be performed with either truncation or rounding. It allows a simplified 
  2507. implementation on various types of processors. The counterpart is that it
  2508. excludes the use of digital test sequence for the test of the QMF.
  2509. .ce
  2510. \fBH.T. [T10.722]\fR 
  2511. .ce
  2512. TABLE\ 10/G.722
  2513. .ce
  2514. \fBRepresentation of internal processing variables and QMF\fR 
  2515. .ce
  2516. \fBcoefficients\fR 
  2517. .ps 9
  2518. .vs 11
  2519. .nr VS 11
  2520. .nr PS 9
  2521. .TS
  2522. center box;
  2523. cw(228p) .
  2524. Transmit QMF
  2525. _
  2526. .T&
  2527. cw(54p) | cw(84p) | cw(90p) .
  2528. Name    Binary representation    Description
  2529. _
  2530. .T&
  2531. lw(54p) | lw(84p) | lw(90p) .
  2532. XA     {
  2533. S, \(em1, \(em2, \(em3, . |  | , \(emy+1, \(emy
  2534.  }     {
  2535. Output signal of sub\(hyblock, ACCUMA
  2536.  }
  2537. .T&
  2538. lw(54p) | lw(84p) | lw(90p) .
  2539. XB     {
  2540. S, \(em1, \(em2, \(em3, . |  | , \(emy+1, \(emy
  2541.  }     {
  2542. Output signal of sub\(hyblock, ACCUMB
  2543.  }
  2544. .T&
  2545. lw(54p) | lw(84p) | lw(90p) .
  2546. XIN1, XIN2, . |  | , XIN23     {
  2547. S, \ S, \(em2, \(em3, . |  | , \(em14, \(em15
  2548.  }     {
  2549. Input signal with delays 1 to 23
  2550.  }
  2551. _
  2552. .T&
  2553. cw(228p) .
  2554. Receive QMF
  2555. _
  2556. .T&
  2557. cw(54p) | cw(84p) | cw(90p) .
  2558. Name    Binary representation    Description
  2559. _
  2560. .T&
  2561. lw(54p) | lw(84p) | lw(90p) .
  2562. XD, XD1, . |  | , XD11     {
  2563. S, \(em1, \(em2, \(em3, . |  | , \(em14, \(em15
  2564.  }     {
  2565. Input signal for sub\(hyblock, ACCUMC, with delays 0 to 11
  2566.  }
  2567. .T&
  2568. lw(54p) | lw(84p) | lw(90p) .
  2569. XOUT1     {
  2570. S, \ S, \(em2, \(em3, . |  | , \(em14, \(em15
  2571.  }    8 kHz sampled output value
  2572. .T&
  2573. lw(54p) | lw(84p) | lw(90p) .
  2574. XOUT2     {
  2575. S, \ S, \(em2, \(em3, . |  | , \(em14, \(em15
  2576.  }    8 kHz sampled output value
  2577. .T&
  2578. lw(54p) | lw(84p) | lw(90p) .
  2579. XS, XS1, . |  | , XS11     {
  2580. S, \(em1, \(em2, \(em3, . |  | , \(em14, \(em15
  2581.  }     {
  2582. Input signal for sub\(hyblock, ACCUMD, with delays 0 to 11
  2583.  }
  2584. .T&
  2585. lw(54p) | lw(84p) | lw(90p) .
  2586. WD     {
  2587. S, \(em1, \(em2, \(em3, . |  | , \(emy+1, \(emy
  2588.  }    Partial sum
  2589. _
  2590. .T&
  2591. cw(228p) .
  2592. QMF coefficients
  2593. _
  2594. .T&
  2595. cw(54p) | cw(84p) | cw(90p) .
  2596. Name    Binary representation    Description
  2597. _
  2598. .T&
  2599. lw(54p) | lw(84p) | lw(90p) .
  2600. H0, H1, . |  | , H23     {
  2601. S, \(em2, \(em3, \(em4, . |  | , \(em12, \(em13
  2602.  }     {
  2603. Filter coefficient values
  2604.  }
  2605. .TE
  2606. .LP
  2607. \fINote\fR
  2608. \ \(em\ y is equal to or greater than 23.
  2609. .nr PS 9
  2610. .RT
  2611. .ad r
  2612. \fBTable 10/G.722 [T10.722], p.\fR 
  2613. .sp 1P
  2614. .RT
  2615. .ad b
  2616. .RT
  2617. .LP
  2618. .bp
  2619. .ce
  2620. \fBH.T. [T11.722]\fR 
  2621. .ce
  2622. TABLE\ 11/G.722
  2623. .ce
  2624. \fBQMF coefficient\fR 
  2625. .ps 9
  2626. .vs 11
  2627. .nr VS 11
  2628. .nr PS 9
  2629. .TS
  2630. center box;
  2631. cw(84p) | cw(60p) .
  2632. Coefficient    Scaled values  (see Note)
  2633. _
  2634. .T&
  2635. cw(84p) | cw(60p) .
  2636. H0\  , H23    \ \ \ 3
  2637. .T&
  2638. cw(84p) | cw(60p) .
  2639. H1\  , H22    \ \(em11
  2640. .T&
  2641. cw(84p) | cw(60p) .
  2642. H2\  , H21    \ \(em11
  2643. .T&
  2644. cw(84p) | cw(60p) .
  2645. H3\  , H20    \ \ 53
  2646. .T&
  2647. cw(84p) | cw(60p) .
  2648. H4\  , H19    \ \ 12
  2649. .T&
  2650. cw(84p) | cw(60p) .
  2651. H5\  , H18    \(em156
  2652. .T&
  2653. cw(84p) | cw(60p) .
  2654. H6\  , H17    \ \ 32
  2655. .T&
  2656. cw(84p) | cw(60p) .
  2657. H7\  , H16    \ 362
  2658. .T&
  2659. cw(84p) | cw(60p) .
  2660. H8\  , H15    \(em210
  2661. .T&
  2662. cw(84p) | cw(60p) .
  2663. H9\  , H14    \(em805
  2664. .T&
  2665. cw(84p) | cw(60p) .
  2666. H10 , H13    \ 951
  2667. .T&
  2668. cw(84p) | cw(60p) .
  2669. H11 , H12    \ 3876
  2670. .TE
  2671. .LP
  2672. \fINote\fR
  2673. \ \(em\ QMF coefficients are scaled by 2\u1\d\u3\d with respect to the
  2674. representation specified in Table\ 10/G.722.
  2675. .nr PS 9
  2676. .RT
  2677. .ad r
  2678. \fBTable 11/G.722 [T11.722], p.\fR 
  2679. .sp 1P
  2680. .RT
  2681. .ad b
  2682. .RT
  2683. .sp 1P
  2684. .LP
  2685. 5.2.1
  2686.     \fIDescription of the transmit QMF\fR 
  2687. .sp 9p
  2688. .RT
  2689. .LP
  2690. .rs
  2691. .sp 20P
  2692. .ad r
  2693. \fBFigure 17/G.722, p.\fR 
  2694. .sp 1P
  2695. .RT
  2696. .ad b
  2697. .RT
  2698. .ad r
  2699. .ad b
  2700. .RT
  2701. .LP
  2702. .bp
  2703. .sp 1P
  2704. .ce 1000
  2705. DELAYX
  2706. .sp 9p
  2707. .RT
  2708. .ce 0
  2709. .sp 1P
  2710. .LP
  2711. Input:
  2712.     x
  2713. .LP
  2714. Output:
  2715.     y
  2716. .LP
  2717. \fINote\fR \ \(em\ Index (
  2718. \fIj\fR ) indicates the current 16\(hykHz sample period,
  2719. while index (
  2720. \fIj\fR \ \(em\ 1) indicates the previous one.
  2721. .LP
  2722. Function:
  2723.     Memory block. For any input x, the output is given by:
  2724. .LP
  2725. \fIy\fR (
  2726. \fIj\fR ) = \fIx\fR (
  2727. \fIj\fR \ \(em\ 1)
  2728. .ad r
  2729. .ad b
  2730. .RT
  2731. .sp 1P
  2732. .ce 1000
  2733. ACCUMA
  2734. .sp 9p
  2735. .RT
  2736. .ce 0
  2737. .sp 1P
  2738. .LP
  2739. Inputs:
  2740.     XIN, XIN2, XIN4, . |  | , XIN22
  2741. .LP
  2742. Output:
  2743.     XA
  2744. .LP
  2745. \fINote\ 1\fR \ \(em\ H0, H2, . |  | , H22 are obtained from Table 11/G.722.
  2746. .LP
  2747. \fINote\ 2\fR \ \(em\ The values XIN, XIN2, . |  | , XIN22 and H0, H2, 
  2748. . |  | , H22 may be 
  2749. shifted before multiplication, if so desired. The result\ XA must be rescaled
  2750. accordingly, In performing these scaling operations the following rules 
  2751. must be obeyed: 
  2752. .LP
  2753.     1)
  2754.      the precision of XIN, XIN2, . |  | , XIN22 and H0, H2, . |  | , H22 as 
  2755. given in Table\ 9/G.722 and Table\ 10/G.722 must be retained, 
  2756. .LP
  2757.     2)
  2758.     the partial products and the ouptut signal XA must be
  2759. retained to a significance of at least\ 2\uD\dlF261\u2\d\u3\d,
  2760. .LP
  2761.     3)
  2762.     no saturation should occur in the calculation of the
  2763. function\ XA.
  2764. .LP
  2765. \fINote\ 3\fR \ \(em\ No order of summation is specified in accumulating 
  2766. the partial 
  2767. products.
  2768. .LP
  2769. Function:
  2770.     Multiply the even order QMF coefficients by the appropriately
  2771. delayed input signals, and accumulate these products.
  2772. .LP
  2773. XA = (XIN 
  2774. *
  2775. H0) + (XIN2 
  2776. *
  2777. H2) + (XIN4 
  2778. *
  2779. H4) + . |  |   + (XIN22 
  2780. *
  2781. H22)
  2782. .ad r
  2783. .ad b
  2784. .RT
  2785. .sp 1P
  2786. .ce 1000
  2787. ACCUMB
  2788. .sp 9p
  2789. .RT
  2790. .ce 0
  2791. .sp 1P
  2792. .LP
  2793. Inputs:
  2794.     XIN1, XIN3, XIN5, . |  | , XIN23
  2795. .LP
  2796. Output:
  2797.     XB
  2798. .LP
  2799. \fINote\ 1\fR \ \(em\ H1, H3, . |  | , H23 are obtained from Table 11/G.722.
  2800. .LP
  2801. \fINote\ 2\fR \ \(em\ The values XIN1, XIN3, . |  | , XIN23 and H1, H3, 
  2802. . |  | , H23 may be 
  2803. shifted before multiplication, if so desired. The result\ XB must be rescaled
  2804. accordingly. In performing these scaling operations the following rules 
  2805. must be obeyed: 
  2806. .LP
  2807.     1)
  2808.      the precision of XIN1, XIN3, . |  | , XIN23 and H1, H3, . |  | , H23 
  2809. as given in Table\ 9/G.722 and Table\ 10/G.722 must be retained, 
  2810. .LP
  2811.     2)
  2812.     the partial products and the output signal X3 must be
  2813. retained to a significance of at least\ 2\uD\dlF261\u2\d\u3\d,
  2814. .LP
  2815.     3)
  2816.     no saturation should occur in the calculation of the
  2817. function\ XB.
  2818. .LP
  2819. \fINote\ 3\fR \ \(em\ No order of summation is specified in accumulating 
  2820. the partial 
  2821. products.
  2822. .LP
  2823. Function:
  2824.     Multiply the odd order QMF coefficients by the appropriately
  2825. delayed input signals, and accumulate these products.
  2826. .LP
  2827. XB = (XIN1 
  2828. *
  2829. H1) + (XIN3 
  2830. *
  2831. H3) + (XIN5 
  2832. *
  2833. H5) + . |  |  + (XIN23 
  2834. *
  2835. H23)
  2836. .ad r
  2837. .ad b
  2838. .RT
  2839. .LP
  2840. .bp
  2841. .sp 1P
  2842. .ce 1000
  2843. LOWT
  2844. .sp 9p
  2845. .RT
  2846. .ce 0
  2847. .sp 1P
  2848. .LP
  2849. Inputs:
  2850.     XA, XB
  2851. .LP
  2852. Output:
  2853.     XL
  2854. .LP
  2855. Function:
  2856.     Compute the lower sub\(hyband signal component.
  2857. .LP
  2858. XL = (XA + XB) >
  2859. > (y \(em 15)
  2860. [Formula Deleted]
  2861. .LP
  2862.